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

Inherited from ASTConsumer:

Methods

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)

Declared at: clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h:32

Parameters

clang::ento::PathDiagnosticConsumer* Consumer