10 #ifndef LLVM_CLANG_STATICANALYZER_CORE_CHECKERREGISTRY_H
11 #define LLVM_CLANG_STATICANALYZER_CORE_CHECKERREGISTRY_H
57 #ifndef CLANG_ANALYZER_API_VERSION_STRING
63 #define CLANG_ANALYZER_API_VERSION_STRING CLANG_VERSION_STRING
67 class DiagnosticsEngine;
68 class AnalyzerOptions;
114 addChecker(&CheckerRegistry::initializeManager<T>, fullName, desc);
130 void printHelp(raw_ostream &out,
size_t maxNameChars = 30)
const ;
134 mutable llvm::StringMap<size_t> Packages;
Manages a set of available checkers for running a static analysis.
InitializationFunction Initialize
void addChecker(StringRef fullName, StringRef desc)
Adds a checker to the registry.
CheckerInfo(InitializationFunction fn, StringRef name, StringRef desc)
void addChecker(InitializationFunction fn, StringRef fullName, StringRef desc)
Adds a checker to the registry.
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
Concrete class used by the front-end to report problems and issues.
Defines version macros and version-related utility functions for Clang.
CHECKER * registerChecker()
Used to register checkers.
void(* InitializationFunction)(CheckerManager &)
Initialization functions perform any necessary setup for a checker.
void printHelp(raw_ostream &out, size_t maxNameChars=30) const
Prints the name and description of all checkers in this registry.
void validateCheckerOptions(const AnalyzerOptions &opts, DiagnosticsEngine &diags) const
Check if every option corresponds to a specific checker or package.
std::vector< CheckerInfo > CheckerInfoList