summaryrefslogtreecommitdiffstats
path: root/clang/lib/FrontendTool
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-02-25 00:09:51 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-02-25 00:09:51 +0000
commit17bee3e70a6925326b37efaf27866073514a6a48 (patch)
treea0443922898966f3e59c08e73732dfce030e8b3f /clang/lib/FrontendTool
parent4322a2864e866e3cbc3f65bfbef5315acf66c56f (diff)
downloadbcm5719-llvm-17bee3e70a6925326b37efaf27866073514a6a48.tar.gz
bcm5719-llvm-17bee3e70a6925326b37efaf27866073514a6a48.zip
Intoduce '-analyzer-checker-help' flag which outputs a list of all available static analyzer checkers.
This is pretty basic for now, eventually checkers should be grouped according to package, hidden checkers should be indicated etc. llvm-svn: 126454
Diffstat (limited to 'clang/lib/FrontendTool')
-rw-r--r--clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index 4bb85e7e634..65fad6da51f 100644
--- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -108,6 +108,12 @@ bool clang::ExecuteCompilerInvocation(CompilerInstance *Clang) {
return 0;
}
+ // Honor -analyzer-checker-help.
+ if (Clang->getAnalyzerOpts().ShowCheckerHelp) {
+ ento::printCheckerHelp(llvm::outs());
+ return 0;
+ }
+
// Honor -version.
//
// FIXME: Use a better -version message?
OpenPOWER on IntegriCloud