class MigrateAction
Declaration
class MigrateAction : public WrapperFrontendAction { /* full declaration omitted */ };
Description
A frontend action which simply wraps some other runtime-specified frontend action. Deriving from this class allows an action to inject custom logic around some existing action's behavior. It implements every virtual method in the FrontendAction interface by forwarding to the wrapped action.
Declared at: clang/include/clang/ARCMigrate/ARCMTActions.h:43
Inherits from: WrapperFrontendAction
Member Variables
- private std::string MigrateDir
- private std::string PlistOut
- private bool EmitPremigrationARCErros
Inherited from WrapperFrontendAction:
Method Overview
- protected bool BeginInvocation(clang::CompilerInstance & CI)
- public MigrateAction(std::unique_ptr<FrontendAction> WrappedAction, llvm::StringRef migrateDir, llvm::StringRef plistOut, bool emitPremigrationARCErrors)
Inherited from WrapperFrontendAction:
- protected BeginInvocation
- protected BeginSourceFileAction
- protected CreateASTConsumer
- protected EndSourceFile
- protected EndSourceFileAction
- protected ExecuteAction
- protected PrepareToExecuteAction
- public getTranslationUnitKind
- public hasASTFileSupport
- public hasCodeCompletionSupport
- public hasIRSupport
- public hasPCHSupport
- protected shouldEraseOutputFiles
- public usesPreprocessorOnly
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 BeginInvocation(clang::CompilerInstance& CI)
bool BeginInvocation(clang::CompilerInstance& CI)
Description
Callback before starting processing a single input, giving the opportunity to modify the CompilerInvocation or do some other action before BeginSourceFileAction is called.
Declared at: clang/include/clang/ARCMigrate/ARCMTActions.h:48
Parameters
Returns
True on success; on failure BeginSourceFileAction(), ExecuteAction() and EndSourceFileAction() will not be called.
¶MigrateAction(
std::unique_ptr<FrontendAction> WrappedAction,
llvm::StringRef migrateDir,
llvm::StringRef plistOut,
bool emitPremigrationARCErrors)
MigrateAction(
std::unique_ptr<FrontendAction> WrappedAction,
llvm::StringRef migrateDir,
llvm::StringRef plistOut,
bool emitPremigrationARCErrors)
Declared at: clang/include/clang/ARCMigrate/ARCMTActions.h:51
Parameters
- std::unique_ptr<FrontendAction> WrappedAction
- llvm::StringRef migrateDir
- llvm::StringRef plistOut
- bool emitPremigrationARCErrors