10struct MyChecker :
public Checker<check::BeginFunction> {
16 llvm::outs() <<
"Example option is set to "
24bool shouldRegisterMyChecker(
const CheckerManager &mgr) {
return true; }
30 registry.
addChecker(registerMyChecker, shouldRegisterMyChecker,
31 "example.MyChecker",
"Example Description",
32 "example.mychecker.documentation.nonexistent.html",
39 "This is an example checker opt.",
void clang_registerCheckers(CheckerRegistry ®istry)
const char clang_analyzerAPIVersionString[]
#define CLANG_ANALYZER_API_VERSION_STRING
bool getCheckerBooleanOption(StringRef CheckerName, StringRef OptionName, bool SearchInParents=false) const
Interprets an option's string value as a boolean.
const AnalyzerOptions & getAnalyzerOptions() const
CHECKER * registerChecker(AT &&... Args)
Used to register checkers.
Manages a set of available checkers for running a static analysis.
void addCheckerOption(StringRef OptionType, StringRef CheckerFullName, StringRef OptionName, StringRef DefaultValStr, StringRef Description, StringRef DevelopmentStatus, bool IsHidden=false)
Registers an option to a given checker.
void addChecker(RegisterCheckerFn Fn, ShouldRegisterFunction sfn, StringRef FullName, StringRef Desc, StringRef DocsUri, bool IsHidden)
Adds a checker to the registry.
The JSON file list parser is used to communicate input to InstallAPI.