[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)
commitf12ee3b7751a95a6796e65eee39cb8e9ae4b3480
tree5f41ce620c9d3250d8b24c2b922e8b163d9b153b
parentb4c0db24dd3f255bfb78f3899c4902b1c576722f
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278006 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CC1Options.td
include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
include/clang/StaticAnalyzer/Core/CheckerRegistry.h
include/clang/StaticAnalyzer/Frontend/FrontendActions.h
lib/Frontend/CompilerInvocation.cpp
lib/FrontendTool/ExecuteCompilerInvocation.cpp
lib/StaticAnalyzer/Core/CheckerRegistry.cpp
lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
test/Analysis/analyzer-enabled-checkers.c [new file with mode: 0644]