clang API Documentation

Public Member Functions | Protected Member Functions | Protected Attributes
clang::FixItAction Class Reference

#include <FrontendActions.h>

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

List of all members.

Public Member Functions

 FixItAction ()
 ~FixItAction ()

Protected Member Functions

virtual ASTConsumerCreateASTConsumer (CompilerInstance &CI, StringRef InFile)
virtual bool BeginSourceFileAction (CompilerInstance &CI, StringRef Filename)
virtual void EndSourceFileAction ()
virtual bool hasASTFileSupport () const
 hasASTFileSupport - Does this action support use with AST files?

Protected Attributes

OwningPtr< FixItRewriterRewriter
OwningPtr< FixItOptionsFixItOpts

Detailed Description

Definition at line 29 of file Rewrite/FrontendActions.h.


Constructor & Destructor Documentation

FixItAction::FixItAction ( )

Definition at line 40 of file Rewrite/FrontendActions.cpp.

FixItAction::~FixItAction ( )

Definition at line 41 of file Rewrite/FrontendActions.cpp.


Member Function Documentation

bool FixItAction::BeginSourceFileAction ( CompilerInstance CI,
StringRef  Filename 
) [protected, virtual]
ASTConsumer * FixItAction::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 43 of file Rewrite/FrontendActions.cpp.

void FixItAction::EndSourceFileAction ( ) [protected, virtual]

EndSourceFileAction - Callback at the end of processing a single input; this is guaranteed to only be called following a successful call to BeginSourceFileAction (and BeginSourceFile).

Reimplemented from clang::FrontendAction.

Definition at line 104 of file Rewrite/FrontendActions.cpp.

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

hasASTFileSupport - Does this action support use with AST files?

Reimplemented from clang::FrontendAction.

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


Member Data Documentation

Definition at line 32 of file Rewrite/FrontendActions.h.

Referenced by BeginSourceFileAction().

Definition at line 31 of file Rewrite/FrontendActions.h.


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