class GenerateHeaderModuleAction
Declaration
class GenerateHeaderModuleAction : public GenerateModuleAction { /* full declaration omitted */ };
Description
Abstract base class to use for AST consumer-based frontend actions.
Declared at: clang/include/clang/Frontend/FrontendActions.h:158
Inherits from: GenerateModuleAction
Member Variables
- private std::unique_ptr<llvm::MemoryBuffer> Buffer
- The synthesized module input buffer for the current compilation.
- private std::vector<std::string> ModuleHeaders
Method Overview
- private bool BeginSourceFileAction(clang::CompilerInstance & CI)
- private std::unique_ptr<raw_pwrite_stream> CreateOutputFile(clang::CompilerInstance & CI, llvm::StringRef InFile)
- private bool PrepareToExecuteAction(clang::CompilerInstance & CI)
Inherited from GenerateModuleAction:
- protected CreateASTConsumer
- protected getTranslationUnitKind
- protected hasASTFileSupport
- protected shouldEraseOutputFiles
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/Frontend/FrontendActions.h:165
Parameters
Returns
True on success; on failure ExecutionAction() and EndSourceFileAction() will not be called.
¶std::unique_ptr<raw_pwrite_stream>
CreateOutputFile(clang::CompilerInstance& CI,
llvm::StringRef InFile)
std::unique_ptr<raw_pwrite_stream>
CreateOutputFile(clang::CompilerInstance& CI,
llvm::StringRef InFile)
Declared at: clang/include/clang/Frontend/FrontendActions.h:168
Parameters
- clang::CompilerInstance& CI
- llvm::StringRef InFile
¶bool PrepareToExecuteAction(
clang::CompilerInstance& CI)
bool PrepareToExecuteAction(
clang::CompilerInstance& CI)
Description
Prepare to execute the action on the given CompilerInstance. This is called before executing the action on any inputs, and can modify the configuration as needed (including adjusting the input list).
Declared at: clang/include/clang/Frontend/FrontendActions.h:164