• Andrew Hsieh's avatar
    Add "WITH_STATIC_ANALYZER=1 m/mm/mmm/mma/mmma ..." · 906cb781
    Andrew Hsieh authored
    The new option WITH_STATIC_ANALYZER=1 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: I9970560560bd52ce5f0fd7129c3488629627c735
    906cb781
envsetup.sh 35 KB