summaryrefslogtreecommitdiffstats
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorKristof Umann <dkszelethus@gmail.com>2019-01-26 15:59:21 +0000
committerKristof Umann <dkszelethus@gmail.com>2019-01-26 15:59:21 +0000
commitdd9c86e5baf31fd7eb8aa82def00ac70dc77cbda (patch)
tree8d23f8238dacaa49285038f1219bb63c61f13f81 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parentf52f4f636f4fe572acde92d8a162a27f37367d05 (diff)
downloadbcm5719-llvm-dd9c86e5baf31fd7eb8aa82def00ac70dc77cbda.tar.gz
bcm5719-llvm-dd9c86e5baf31fd7eb8aa82def00ac70dc77cbda.zip
[analyzer][NFC] Supply CheckerRegistry with AnalyzerOptions
Since pretty much all methods of CheckerRegistry has AnalyzerOptions as an argument, it makes sense to just simply require it in it's constructor. Differential Revision: https://reviews.llvm.org/D56988 llvm-svn: 352279
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
-rw-r--r--clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index 2d3fb9035e8..c226838786f 100644
--- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -237,8 +237,11 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) {
// Honor -analyzer-checker-help.
// This should happen AFTER plugins have been loaded!
if (Clang->getAnalyzerOpts()->ShowCheckerHelp) {
- ento::printCheckerHelp(llvm::outs(), Clang->getFrontendOpts().Plugins,
- Clang->getDiagnostics(), Clang->getLangOpts());
+ ento::printCheckerHelp(llvm::outs(),
+ Clang->getFrontendOpts().Plugins,
+ *Clang->getAnalyzerOpts(),
+ Clang->getDiagnostics(),
+ Clang->getLangOpts());
return true;
}
OpenPOWER on IntegriCloud