How to use static code analyzer introduced in android ndk r8e?

http://developer.android.com/tools/sdk/ndk/index.html

As you can see from the above link, android ndk r8e:

Added static code analyzer for Linux / MacOSX hosts. For information on using the analyzer, see CHANGES.HTML.

In CHANGES.HTML:

  • Added static code analyzer for Linux / MacOSX hosts
    • For ndk-build, either export NDK_ANALYZE = 1, or add it to the command line.
    • For autonomous work, please refer to ndk-build, for example, to run scan-build using / path / to / standalone / bin // analyzer.

I added the ndk-build command NDK_ANALYZE = 1 to build, and it builds fine. But how exactly can I use the analyzer to detect memory problems? I did not find any documentation.

+5
2

"" NDK. , .

scan-build: '/opt/android-ndk/toolchains/llvm-3.2/prebuilt/linux-x86_64/bin/armeabi/analyzer'

, , :

scan-build: 1 . scan-build: 'scan-view/tmp/scan-build-2013-03-29-4', .

, , .

0

, NDK_ANALYZE . eclipse cppcheclipse, . , , .

0

All Articles