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

Inherited from GenerateModuleAction:

Inherited from ASTFrontendAction:

Inherited from FrontendAction:

Methods

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

clang::CompilerInstance& CI

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)

Declared at: clang/include/clang/Frontend/FrontendActions.h:168

Parameters

clang::CompilerInstance& CI
llvm::StringRef InFile

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

Parameters

clang::CompilerInstance& CI