clang API Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions
clang::GenerateModuleAction Class Reference

#include <FrontendActions.h>

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

List of all members.

Public Member Functions

virtual bool BeginSourceFileAction (CompilerInstance &CI, StringRef Filename)

Static Public Member Functions

static bool ComputeASTConsumerArguments (CompilerInstance &CI, StringRef InFile, std::string &Sysroot, std::string &OutputFile, raw_ostream *&OS)
 Compute the AST consumer arguments that will be used to create the PCHGenerator instance returned by CreateASTConsumer.

Protected Member Functions

virtual ASTConsumerCreateASTConsumer (CompilerInstance &CI, StringRef InFile)
virtual TranslationUnitKind getTranslationUnitKind ()
 For AST-based actions, the kind of translation unit we're handling.
virtual bool hasASTFileSupport () const
 hasASTFileSupport - Does this action support use with AST files?

Detailed Description

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


Member Function Documentation

bool GenerateModuleAction::BeginSourceFileAction ( CompilerInstance CI,
StringRef  Filename 
) [virtual]
bool GenerateModuleAction::ComputeASTConsumerArguments ( CompilerInstance CI,
StringRef  InFile,
std::string &  Sysroot,
std::string &  OutputFile,
raw_ostream *&  OS 
) [static]
ASTConsumer * GenerateModuleAction::CreateASTConsumer ( CompilerInstance CI,
StringRef  InFile 
) [protected, virtual]

CreateASTConsumer - Create the AST consumer object for this action, if supported.

This routine is called as part of

See also:
BeginSourceAction(), 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 also:
getCompilerInstance().
Parameters:
InFile- The current input file, provided as a convenience,
See also:
getCurrentFile().
Returns:
The new AST consumer, or 0 on failure.

Implements clang::FrontendAction.

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

References ComputeASTConsumerArguments(), and clang::CompilerInstance::getPreprocessor().

virtual TranslationUnitKind clang::GenerateModuleAction::getTranslationUnitKind ( ) [inline, protected, virtual]

For AST-based actions, the kind of translation unit we're handling.

Reimplemented from clang::FrontendAction.

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

References clang::TU_Module.

virtual bool clang::GenerateModuleAction::hasASTFileSupport ( ) const [inline, protected, virtual]

hasASTFileSupport - Does this action support use with AST files?

Reimplemented from clang::FrontendAction.

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


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