clang API Documentation

Protected Member Functions
clang::ASTPrintAction Class Reference

#include <FrontendActions.h>

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

List of all members.

Protected Member Functions

std::unique_ptr< ASTConsumerCreateASTConsumer (CompilerInstance &CI, StringRef InFile) override
 Create the AST consumer object for this action, if supported.

Detailed Description

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


Member Function Documentation

std::unique_ptr< ASTConsumer > ASTPrintAction::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 49 of file Frontend/FrontendActions.cpp.

References clang::FrontendOptions::ASTDumpFilter, clang::CreateASTPrinter(), clang::CompilerInstance::createDefaultOutputFile(), and clang::CompilerInstance::getFrontendOpts().


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