]> granicus.if.org Git - clang/commit
[analyzer] List checkers in 3 categories: released, alpha, developer
authorKristof Umann <kristof.umann@ericsson.com>
Thu, 23 May 2019 21:46:51 +0000 (21:46 +0000)
committerKristof Umann <kristof.umann@ericsson.com>
Thu, 23 May 2019 21:46:51 +0000 (21:46 +0000)
commiteb1a2354d805e932fc261929406a2a191c3464df
tree6bbc166fbe54bd10164e4b6aa74fbdb05b5fa9d6
parent2cee20d7778a10ab46f8c2a795023e8696030425
[analyzer] List checkers in 3 categories: released, alpha, developer

Previously, the only way to display the list of available checkers was
to invoke the analyzer with -analyzer-checker-help frontend flag. This
however wasn't really great from a maintainer standpoint: users came
across checkers meant strictly for development purposes that weren't to
be tinkered with, or those that were still in development. This patch
creates a clearer division in between these categories.

From now on, we'll have 3 flags to display the list checkers. These
lists are mutually exclusive and can be used in any combination (for
example to display both stable and alpha checkers).

-analyzer-checker-help: Displays the list for stable, production ready
                        checkers.

-analyzer-checker-help-alpha: Displays the list for in development
                              checkers. Enabling is discouraged
                              for non-development purposes.

-analyzer-checker-help-developer: Modeling and debug checkers. Modeling
                                  checkers shouldn't be enabled/disabled
                                  by hand, and debug checkers shouldn't
                                  be touched by users.

Differential Revision: https://reviews.llvm.org/D62093

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361558 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CC1Options.td
include/clang/StaticAnalyzer/Checkers/CheckerBase.td
include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
lib/Frontend/CompilerInvocation.cpp
lib/FrontendTool/ExecuteCompilerInvocation.cpp
lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp
test/Analysis/show-checker-list.c