class FrontendActionFactoryAdapter::ConsumerFactoryAdaptor
Declaration
class FrontendActionFactoryAdapter::ConsumerFactoryAdaptor
: public ASTFrontendAction { /* full declaration omitted */ };
Description
Abstract base class to use for AST consumer-based frontend actions.
Declared at: clang/include/clang/Tooling/Tooling.h:430
Inherits from: ASTFrontendAction
Member Variables
- private FactoryT* ConsumerFactory
- private clang::tooling::SourceFileCallbacks* Callbacks
Method Overview
- protected bool BeginSourceFileAction(clang::CompilerInstance & CI)
- public ConsumerFactoryAdaptor(FactoryT * ConsumerFactory, clang::tooling::SourceFileCallbacks * Callbacks)
- public std::unique_ptr<ASTConsumer> CreateASTConsumer(clang::CompilerInstance &, llvm::StringRef)
- protected void EndSourceFileAction()
Inherited from ASTFrontendAction:
Inherited from FrontendAction:
- protected BeginInvocation
- public BeginSourceFile
- protected BeginSourceFileAction
- protected CreateASTConsumer
- public EndSourceFile
- protected EndSourceFileAction
- public Execute
- protected ExecuteAction
- public PrepareToExecute
- protected PrepareToExecuteAction
- public getCompilerInstance
- public getCurrentASTUnit
- public getCurrentFile
- public getCurrentFileKind
- public getCurrentFileOrBufferName
- public getCurrentInput
- public getCurrentModule
- public getTranslationUnitKind
- public hasASTFileSupport
- public hasCodeCompletionSupport
- public hasIRSupport
- public hasPCHSupport
- public isCurrentFileAST
- public isModelParsingAction
- public setCompilerInstance
- public setCurrentInput
- protected shouldEraseOutputFiles
- public takeCurrentASTUnit
- public usesPreprocessorOnly
Methods
¶bool BeginSourceFileAction(
clang::CompilerInstance& CI)
bool BeginSourceFileAction(
clang::CompilerInstance& CI)
Description
Callback at the start of processing a single input.
Declared at: clang/include/clang/Tooling/Tooling.h:442
Parameters
Returns
True on success; on failure ExecutionAction() and EndSourceFileAction() will not be called.
¶ConsumerFactoryAdaptor(
FactoryT* ConsumerFactory,
clang::tooling::SourceFileCallbacks*
Callbacks)
ConsumerFactoryAdaptor(
FactoryT* ConsumerFactory,
clang::tooling::SourceFileCallbacks*
Callbacks)
Declared at: clang/include/clang/Tooling/Tooling.h:432
Parameters
- FactoryT* ConsumerFactory
- clang::tooling::SourceFileCallbacks* Callbacks
¶std::unique_ptr<ASTConsumer> CreateASTConsumer(
clang::CompilerInstance&,
llvm::StringRef)
std::unique_ptr<ASTConsumer> CreateASTConsumer(
clang::CompilerInstance&,
llvm::StringRef)
Description
Create the AST consumer object for this action, if supported. This routine is called as part of BeginSourceFile(), which will fail if the AST consumer cannot be created. This will not be called if the action has indicated that it only uses the preprocessor.
Declared at: clang/include/clang/Tooling/Tooling.h:437
Parameters
Returns
The new AST consumer, or null on failure.
¶void EndSourceFileAction()
void EndSourceFileAction()
Description
Callback at the end of processing a single input. This is guaranteed to only be called following a successful call to BeginSourceFileAction (and BeginSourceFile).
Declared at: clang/include/clang/Tooling/Tooling.h:450