class ASTSrcLocGenerationAction
Declaration
class ASTSrcLocGenerationAction : public ASTFrontendAction { /* full declaration omitted */ };
Description
Abstract base class to use for AST consumer-based frontend actions.
Declared at: clang/lib/Tooling/DumpTool/ClangSrcLocDump.cpp:44
Inherits from: ASTFrontendAction
Member Variables
- private clang::tooling::ASTSrcLocProcessor Processor
Method Overview
- public ASTSrcLocGenerationAction()
- public std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(clang::CompilerInstance & Compiler, llvm::StringRef File)
- public void ExecuteAction()
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
¶ASTSrcLocGenerationAction()
ASTSrcLocGenerationAction()
Declared at: clang/lib/Tooling/DumpTool/ClangSrcLocDump.cpp:46
¶std::unique_ptr<clang::ASTConsumer>
CreateASTConsumer(
clang::CompilerInstance& Compiler,
llvm::StringRef File)
std::unique_ptr<clang::ASTConsumer>
CreateASTConsumer(
clang::CompilerInstance& Compiler,
llvm::StringRef File)
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/lib/Tooling/DumpTool/ClangSrcLocDump.cpp:57
Parameters
- clang::CompilerInstance& Compiler
- llvm::StringRef File
Returns
The new AST consumer, or null on failure.
¶void ExecuteAction()
void ExecuteAction()
Description
Implement the ExecuteAction interface by running Sema on the already-initialized AST consumer. This will also take care of instantiating a code completion consumer if the user requested it and the action supports it.
Declared at: clang/lib/Tooling/DumpTool/ClangSrcLocDump.cpp:48