Use analyzer at new location: prebuilts/misc/{linux-x86,darwin-x86}/analyzer
Analyzer needed by WITH_STATIC_ANALYZER and WITH_SYNTAX_CHECK is moved from prebuilts/clang/{linux-x86,darwin-x86}/host/3.3 to prebuilts/misc/{linux-x86,darwin-x86}/analyzer See https://android-review.googlesource.com/#/c/83852/ BUG=13243591 Usage: "WITH_SYNTAX_CHECK=1 make ..." instructs build system to invoke "clang -fsyntax-only" to utilize clang's better diagnostics before calling LOCAL_CC/LOCAL_CXX for code generation. The compilation time is slightly longer, and the generated object file should be the same as w/o WITH_SYNTAX_CHECK "WITH_STATIC_ANALYZER=1 m/mm/mmm/mma/mmma ..." instructs build system to run static analyzer via "clang --analyze" on a successful build. If analyzer finds any issue, instruction to open report is displayed. See http://clang-analyzer.llvm.org/scan-build.html for details. WITH_STATIC_ANALYZER trumps WITH_SYNTAX_CHECK if both exist. Project use lots of GCC extensions (eg. nested function) not supported by clang may opt out by adding LOCAL_NO_STATIC_ANALYZER:=true Change-Id: I3c444e70e570cfd264ffcd392a12b2930398307e
Loading
Please register or sign in to comment