diff options
author | Anna Zaks <ganna@apple.com> | 2014-08-29 20:01:38 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2014-08-29 20:01:38 +0000 |
commit | d5478fdd8f054ceff9c64636c4ac65a256fcd69a (patch) | |
tree | 109f26db2007f5f2d8609fe99c92e947d7a63d10 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 43e3717bdbb283e92be521167f0dc93b8ed86371 (diff) | |
download | bcm5719-llvm-d5478fdd8f054ceff9c64636c4ac65a256fcd69a.tar.gz bcm5719-llvm-d5478fdd8f054ceff9c64636c4ac65a256fcd69a.zip |
Add an option to silence all analyzer warnings.
People have been incorrectly using "-analyzer-disable-checker" to
silence analyzer warnings on a file, when analyzing a project. Add
the "-analyzer-disable-all-checks" option, which would allow the
suppression and suggest it as part of the error message for
"-analyzer-disable-checker". The idea here is to compose this with
"--analyze" so that users can selectively opt out specific files from
static analysis.
llvm-svn: 216763
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 6c176e8c1a0..31b53a59d07 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -215,6 +215,8 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args, } Opts.ShowCheckerHelp = Args.hasArg(OPT_analyzer_checker_help); + Opts.DisableAllChecks = Args.hasArg(OPT_analyzer_disable_all_checks); + Opts.visualizeExplodedGraphWithGraphViz = Args.hasArg(OPT_analyzer_viz_egraph_graphviz); Opts.visualizeExplodedGraphWithUbiGraph = |