clang API Documentation
#include <FrontendActions.h>


Public Member Functions | |
| FixItAction () | |
| ~FixItAction () | |
Protected Member Functions | |
| virtual ASTConsumer * | CreateASTConsumer (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< FixItRewriter > | Rewriter |
| OwningPtr< FixItOptions > | FixItOpts |
Definition at line 29 of file Rewrite/FrontendActions.h.
| FixItAction::FixItAction | ( | ) |
Definition at line 40 of file Rewrite/FrontendActions.cpp.
| FixItAction::~FixItAction | ( | ) |
Definition at line 41 of file Rewrite/FrontendActions.cpp.
| bool FixItAction::BeginSourceFileAction | ( | CompilerInstance & | CI, |
| StringRef | Filename | ||
| ) | [protected, virtual] |
BeginSourceFileAction - Callback at the start of processing a single input.
Reimplemented from clang::FrontendAction.
Definition at line 89 of file Rewrite/FrontendActions.cpp.
References FixItOpts, clang::FrontendOptions::FixItSuffix, clang::FrontendOptions::FixWhatYouCan, clang::FrontendAction::getCompilerInstance(), clang::CompilerInstance::getDiagnostics(), clang::CompilerInstance::getFrontendOpts(), clang::CompilerInstance::getLangOpts(), and clang::CompilerInstance::getSourceManager().
| 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
| CI | - The current compiler instance, provided as a convenience, |
| InFile | - The current input file, provided as a convenience, |
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.
OwningPtr<FixItOptions> clang::FixItAction::FixItOpts [protected] |
Definition at line 32 of file Rewrite/FrontendActions.h.
Referenced by BeginSourceFileAction().
OwningPtr<FixItRewriter> clang::FixItAction::Rewriter [protected] |
Definition at line 31 of file Rewrite/FrontendActions.h.