OSDN Git Service

Use newest clang static analyzers.
authorChih-Hung Hsieh <chh@google.com>
Tue, 2 Feb 2016 19:30:39 +0000 (11:30 -0800)
committerChih-Hung Hsieh <chh@google.com>
Fri, 12 Feb 2016 00:43:51 +0000 (16:43 -0800)
commit765c1ea6d7272fae04d435b9bac79087a2f6aabf
treef7d3bc81806d3b914b363ea48e57acb444b5b469
parent8290ba9e0df3e6f4ef8c21e3964862f90944ead2
Use newest clang static analyzers.

* 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

Change-Id: I5edb25b52998d871385dd000778db2ce83224078
core/binary.mk
core/clang/HOST_x86_common.mk
core/clang/config.mk
core/clang/versions.mk [new file with mode: 0644]
core/combo/HOST_CROSS_windows-x86.mk
core/combo/HOST_CROSS_windows-x86_64.mk
core/config.mk