[analyzer] Command line option to show enabled checker list.
authorGabor Horvath <xazax.hun@gmail.com>
Mon, 8 Aug 2016 13:41:04 +0000 (13:41 +0000)
committerGabor Horvath <xazax.hun@gmail.com>
Mon, 8 Aug 2016 13:41:04 +0000 (13:41 +0000)
commitc430990d0bd4b32312049adbf6a84afc990813eb
treed08d8cbd7f216ca7361682c9e5498e73f1414377
parent142f4f76be8b9c65385029213a36248e34547e3f
[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
clang/include/clang/Driver/CC1Options.td
clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h
clang/include/clang/StaticAnalyzer/Frontend/FrontendActions.h
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
clang/lib/StaticAnalyzer/Core/CheckerRegistry.cpp
clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
clang/test/Analysis/analyzer-enabled-checkers.c [new file with mode: 0644]