class RewriteIncludesAction
Declaration
class RewriteIncludesAction : public PreprocessorFrontendAction { /* full declaration omitted */ };
Description
Abstract base class to use for preprocessor-based frontend actions.
Declared at: clang/include/clang/Rewrite/Frontend/FrontendActions.h:75
Inherits from: PreprocessorFrontendAction
Member Variables
- private std::shared_ptr<raw_ostream> OutputStream
Method Overview
- protected bool BeginSourceFileAction(clang::CompilerInstance & CI)
- protected void ExecuteAction()
Inherited from PreprocessorFrontendAction:
Inherited from FrontendAction:
- protected BeginInvocation
- public BeginSourceFile
- protected BeginSourceFileAction
- protected CreateASTConsumer
- public EndSourceFile
- protected EndSourceFileAction
- public Execute
- protected ExecuteAction
- public PrepareToExecute
- protected PrepareToExecuteAction
- public getCompilerInstance
- public getCurrentASTUnit
- public getCurrentFile
- public getCurrentFileKind
- public getCurrentFileOrBufferName
- public getCurrentInput
- public getCurrentModule
- public getTranslationUnitKind
- public hasASTFileSupport
- public hasCodeCompletionSupport
- public hasIRSupport
- public hasPCHSupport
- public isCurrentFileAST
- public isModelParsingAction
- public setCompilerInstance
- public setCurrentInput
- protected shouldEraseOutputFiles
- public takeCurrentASTUnit
- public usesPreprocessorOnly
Methods
¶bool BeginSourceFileAction(
clang::CompilerInstance& CI)
bool BeginSourceFileAction(
clang::CompilerInstance& CI)
Description
Callback at the start of processing a single input.
Declared at: clang/include/clang/Rewrite/Frontend/FrontendActions.h:79
Parameters
Returns
True on success; on failure ExecutionAction() and EndSourceFileAction() will not be called.
¶void ExecuteAction()
void ExecuteAction()
Description
Callback to run the program action, using the initialized compiler instance. This is guaranteed to only be called between BeginSourceFileAction() and EndSourceFileAction().
Declared at: clang/include/clang/Rewrite/Frontend/FrontendActions.h:80