• Chih-Hung Hsieh's avatar
    Use newest clang static analyzers. · 71d8cbd9
    Chih-Hung Hsieh authored
    * When WITH_STATIC_ANALYZER is set and non-zero, and clang compiler is used,
      call new clang ccc-analyzer or c++-analyzer.
    * Otherwise, if WITH_SYNTAX_CHECK is set and non-zero,
      call compiler with -fsyntax-only.
    * Replace "--sysroot=path" with "--sysroot path", to work with ccc-analyzer.
    * ccc-analyzer executes the original compilation command to generate
      object files before calling clang with --analyze to do static analysis.
    * When clang is called with --analyze, macro __clang_analyzer__ is defined.
    
    BUG: 13287788
    
    (cherry picked from commit 765c1ea6)
    
    Change-Id: I6e51e51ff4ed3ce514f60d090494dcdf6e520b04
    71d8cbd9
binary.mk 58.7 KB