[analyzer] Add "-analyzer-config mode=[deep|shallow] ".
authorAnna Zaks <ganna@apple.com>
Thu, 24 Jan 2013 23:15:34 +0000 (23:15 +0000)
committerAnna Zaks <ganna@apple.com>
Thu, 24 Jan 2013 23:15:34 +0000 (23:15 +0000)
commit36d988f02356a0cbbee86b67830cd3bba2b0241c
treece29d059350e09f4c282e1fa4c9b702ab9700d53
parent6bab4ef4e83ffd7f42e00b5ead2bcfead78b51b4
[analyzer] Add "-analyzer-config mode=[deep|shallow] ".

The idea is to introduce a higher level "user mode" option for
different use scenarios. For example, if one wants to run the analyzer
for a small project each time the code is built, they would use
the "shallow" mode.

The user mode option will influence the default settings for the
lower-level analyzer options. For now, this just influences the ipa
modes, but we plan to find more optimal settings for them.

llvm-svn: 173386
clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
clang/test/Analysis/analyzer-config.c
clang/test/Analysis/analyzer-config.cpp
clang/test/Analysis/shallow-mode.m [new file with mode: 0644]