Go to the documentation of this file.
9 #ifndef LLVM_CLANG_REWRITE_FRONTEND_FRONTENDACTIONS_H
10 #define LLVM_CLANG_REWRITE_FRONTEND_FRONTENDACTIONS_H
13 #include "llvm/Support/raw_ostream.h"
26 StringRef InFile)
override;
35 StringRef InFile)
override;
62 StringRef InFile)
override;
76 std::shared_ptr<raw_ostream> OutputStream;
Emits changes to temporary files and uses them for the original frontend action.
void ExecuteAction() override
Callback to run the program action, using the initialized compiler instance.
Abstract base class to use for preprocessor-based frontend actions.
FixItRecompile(std::unique_ptr< FrontendAction > WrappedAction)
bool BeginSourceFileAction(CompilerInstance &CI) override
Callback at the start of processing a single input.
bool hasASTFileSupport() const override
Does this action support use with AST files?
CompilerInstance - Helper class for managing a single instance of the Clang compiler.
bool BeginSourceFileAction(CompilerInstance &CI) override
Callback at the start of processing a single input.
std::unique_ptr< ASTConsumer > CreateASTConsumer(CompilerInstance &CI, StringRef InFile) override
Create the AST consumer object for this action, if supported.
std::unique_ptr< ASTConsumer > CreateASTConsumer(CompilerInstance &CI, StringRef InFile) override
Create the AST consumer object for this action, if supported.
std::unique_ptr< ASTConsumer > CreateASTConsumer(CompilerInstance &CI, StringRef InFile) override
Create the AST consumer object for this action, if supported.
std::unique_ptr< FixItOptions > FixItOpts
std::unique_ptr< FixItRewriter > Rewriter
void ExecuteAction() override
Callback to run the program action, using the initialized compiler instance.
void ExecuteAction() override
Callback to run the program action, using the initialized compiler instance.
std::unique_ptr< FrontendAction > WrappedAction
bool BeginInvocation(CompilerInstance &CI) override
Callback before starting processing a single input, giving the opportunity to modify the CompilerInvo...
void EndSourceFileAction() override
Callback at the end of processing a single input.
Abstract base class to use for AST consumer-based frontend actions.
A frontend action which simply wraps some other runtime-specified frontend action.