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)
committerStephen Hines <srhines@google.com>
Sat, 27 Feb 2016 02:51:26 +0000 (18:51 -0800)
commit71d8cbd9b6846b432de4f3ddb81d136ae582ad25
tree2ffd8faf220b46f7cfaad2fbd2faa60715fc714b
parent7e57b8ca57d6de66a16cf6b81b9fc5a74d465caa
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

(cherry picked from commit 765c1ea6d7272fae04d435b9bac79087a2f6aabf)

Change-Id: I6e51e51ff4ed3ce514f60d090494dcdf6e520b04
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