class DumpModuleInfoAction

Declaration

class DumpModuleInfoAction : public ASTFrontendAction { /* full declaration omitted */ };

Description

Dump information about the given module file, to be used for basic debugging and discovery.

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

Inherits from: ASTFrontendAction

Member Variables

public llvm::raw_ostream* OutputStream = nullptr

Method Overview

Inherited from ASTFrontendAction:

Inherited from FrontendAction:

Methods

bool BeginInvocation(clang::CompilerInstance& CI)

Description

Callback before starting processing a single input, giving the opportunity to modify the CompilerInvocation or do some other action before BeginSourceFileAction is called.

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

Parameters

clang::CompilerInstance& CI

Returns

True on success; on failure BeginSourceFileAction(), ExecuteAction() and EndSourceFileAction() will not be called.

std::unique_ptr<ASTConsumer> CreateASTConsumer(
    clang::CompilerInstance& CI,
    llvm::StringRef InFile)

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/Frontend/FrontendActions.h:198

Parameters

clang::CompilerInstance& CI
- The current compiler instance, provided as a convenience, see getCompilerInstance().
llvm::StringRef InFile
- The current input file, provided as a convenience, see getCurrentFile().

Returns

The new AST consumer, or null on failure.

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/include/clang/Frontend/FrontendActions.h:201

bool hasASTFileSupport() const

Description

Does this action support use with AST files?

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

bool hasCodeCompletionSupport() const

Description

Does this action support use with code completion?

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

bool hasIRSupport() const

Description

Does this action support use with IR files?

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

bool hasPCHSupport() const

Description

Does this action support use with PCH?

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