clang API Documentation

Public Member Functions | Protected Member Functions
clang::DumpModuleInfoAction Class Reference

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

#include <FrontendActions.h>

Inheritance diagram for clang::DumpModuleInfoAction:
Inheritance graph
[legend]
Collaboration diagram for clang::DumpModuleInfoAction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool hasPCHSupport () const override
 Does this action support use with PCH?
bool hasASTFileSupport () const override
 Does this action support use with AST files?
bool hasIRSupport () const override
 Does this action support use with IR files?
bool hasCodeCompletionSupport () const override
 Does this action support use with code completion?

Protected Member Functions

std::unique_ptr< ASTConsumerCreateASTConsumer (CompilerInstance &CI, StringRef InFile) override
 Create the AST consumer object for this action, if supported.
void ExecuteAction () override
 Implement the ExecuteAction interface by running Sema on the already-initialized AST consumer.

Detailed Description

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

Definition at line 140 of file Frontend/FrontendActions.h.


Member Function Documentation

std::unique_ptr< ASTConsumer > DumpModuleInfoAction::CreateASTConsumer ( CompilerInstance CI,
StringRef  InFile 
) [override, protected, virtual]

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.

Parameters:
CI- The current compiler instance, provided as a convenience, see getCompilerInstance().
InFile- The current input file, provided as a convenience, see getCurrentFile().
Returns:
The new AST consumer, or null on failure.

Implements clang::FrontendAction.

Definition at line 377 of file Frontend/FrontendActions.cpp.

void DumpModuleInfoAction::ExecuteAction ( ) [override, protected, virtual]

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.

Reimplemented from clang::ASTFrontendAction.

Definition at line 532 of file Frontend/FrontendActions.cpp.

References clang::FrontendAction::getCompilerInstance(), clang::FrontendAction::getCurrentFile(), clang::CompilerInstance::getFrontendOpts(), clang::FrontendOptions::OutputFile, and clang::ASTReader::readASTFileControlBlock().

bool clang::DumpModuleInfoAction::hasASTFileSupport ( ) const [inline, override, virtual]

Does this action support use with AST files?

Reimplemented from clang::FrontendAction.

Definition at line 148 of file Frontend/FrontendActions.h.

bool clang::DumpModuleInfoAction::hasCodeCompletionSupport ( ) const [inline, override, virtual]

Does this action support use with code completion?

Reimplemented from clang::FrontendAction.

Definition at line 150 of file Frontend/FrontendActions.h.

bool clang::DumpModuleInfoAction::hasIRSupport ( ) const [inline, override, virtual]

Does this action support use with IR files?

Reimplemented from clang::FrontendAction.

Definition at line 149 of file Frontend/FrontendActions.h.

bool clang::DumpModuleInfoAction::hasPCHSupport ( ) const [inline, override, virtual]

Does this action support use with PCH?

Reimplemented from clang::FrontendAction.

Definition at line 147 of file Frontend/FrontendActions.h.


The documentation for this class was generated from the following files: