class AnalysisASTConsumer
Declaration
class AnalysisASTConsumer : public ASTConsumer { /* full declaration omitted */ };
Description
ASTConsumer - This is an abstract interface that should be implemented by clients that read ASTs. This abstraction layer allows the client to be independent of the AST producer (e.g. parser vs AST dump file reader, etc).
Declared at: clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h:30
Inherits from: ASTConsumer
Member Variables
Method Overview
- public virtual void AddCheckerRegistrationFn(std::function<void (CheckerRegistry &)> Fn)
- public virtual void AddDiagnosticConsumer(clang::ento::PathDiagnosticConsumer * Consumer)
Inherited from ASTConsumer:
- public AssignInheritanceModel
- public CompleteExternalDeclaration
- public CompleteTentativeDefinition
- public GetASTDeserializationListener
- public GetASTMutationListener
- public HandleCXXImplicitFunctionInstantiation
- public HandleCXXStaticMemberVarInstantiation
- public HandleImplicitImportDecl
- public HandleInlineFunctionDefinition
- public HandleInterestingDecl
- public HandleTagDeclDefinition
- public HandleTagDeclRequiredDefinition
- public HandleTopLevelDecl
- public HandleTopLevelDeclInObjCContainer
- public HandleTranslationUnit
- public HandleVTable
- public Initialize
- public PrintStats
- public shouldSkipFunctionBody
Methods
¶virtual void AddCheckerRegistrationFn(
std::function<void(CheckerRegistry&)> Fn)
virtual void AddCheckerRegistrationFn(
std::function<void(CheckerRegistry&)> Fn)
Description
This method allows registering statically linked custom checkers that are not a part of the Clang tree. It employs the same mechanism that is used by plugins. Example: Consumer->AddCheckerRegistrationFn([] (CheckerRegistry & Registry) { Registry.addChecker <MyCustomChecker >("example.MyCustomChecker", "Description"); });
Declared at: clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h:45
Parameters
- std::function<void(CheckerRegistry&)> Fn
¶virtual void AddDiagnosticConsumer(
clang::ento::PathDiagnosticConsumer* Consumer)
virtual void AddDiagnosticConsumer(
clang::ento::PathDiagnosticConsumer* Consumer)
Declared at: clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h:32
Parameters
- clang::ento::PathDiagnosticConsumer* Consumer