diff options
author | Gabor Horvath <xazax.hun@gmail.com> | 2016-08-08 13:41:04 +0000 |
---|---|---|
committer | Gabor Horvath <xazax.hun@gmail.com> | 2016-08-08 13:41:04 +0000 |
commit | c430990d0bd4b32312049adbf6a84afc990813eb (patch) | |
tree | d08d8cbd7f216ca7361682c9e5498e73f1414377 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 142f4f76be8b9c65385029213a36248e34547e3f (diff) | |
download | bcm5719-llvm-c430990d0bd4b32312049adbf6a84afc990813eb.tar.gz bcm5719-llvm-c430990d0bd4b32312049adbf6a84afc990813eb.zip |
[analyzer] Command line option to show enabled checker list.
This patch adds a command line option to list the checkers that were enabled
by analyzer-checker and not disabled by -analyzer-disable-checker.
It can be very useful to debug long command lines when it is not immediately
apparent which checkers are turned on and which checkers are turned off.
Differential Revision: https://reviews.llvm.org/D23060
llvm-svn: 278006
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index cfbc40be94c..9a18a6365fa 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -238,6 +238,7 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args, } Opts.ShowCheckerHelp = Args.hasArg(OPT_analyzer_checker_help); + Opts.ShowEnabledCheckerList = Args.hasArg(OPT_analyzer_list_enabled_checkers); Opts.DisableAllChecks = Args.hasArg(OPT_analyzer_disable_all_checks); Opts.visualizeExplodedGraphWithGraphViz = |