clang API Documentation

Protected Member Functions
clang::PrintPreambleAction Class Reference

#include <FrontendActions.h>

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

List of all members.

Protected Member Functions

void ExecuteAction () override
 Callback to run the program action, using the initialized compiler instance.
std::unique_ptr< ASTConsumerCreateASTConsumer (CompilerInstance &, StringRef) override
 Create the AST consumer object for this action, if supported.
bool usesPreprocessorOnly () const override
 Does this action only use the preprocessor?

Detailed Description

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


Member Function Documentation

std::unique_ptr<ASTConsumer> clang::PrintPreambleAction::CreateASTConsumer ( CompilerInstance CI,
StringRef  InFile 
) [inline, 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 203 of file Frontend/FrontendActions.h.

void PrintPreambleAction::ExecuteAction ( ) [override, protected, virtual]
bool clang::PrintPreambleAction::usesPreprocessorOnly ( ) const [inline, override, protected, virtual]

Does this action only use the preprocessor?

If so no AST context will be created and this action will be invalid with AST file inputs.

Implements clang::FrontendAction.

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


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