class ObjCMigrateAction
Declaration
class ObjCMigrateAction : public WrapperFrontendAction { /* full declaration omitted */ };
Description
Migrates to modern ObjC syntax.
Declared at: clang/include/clang/ARCMigrate/ARCMTActions.h:58
Inherits from: WrapperFrontendAction
Member Variables
- private std::string MigrateDir
- private unsigned int ObjCMigAction
- private clang::arcmt::FileRemapper Remapper
- private clang::CompilerInstance* CompInst
Inherited from WrapperFrontendAction:
Method Overview
- protected bool BeginInvocation(clang::CompilerInstance & CI)
- protected std::unique_ptr<ASTConsumer> CreateASTConsumer(clang::CompilerInstance & CI, llvm::StringRef InFile)
- public ObjCMigrateAction(std::unique_ptr<FrontendAction> WrappedAction, llvm::StringRef migrateDir, unsigned int migrateAction)
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:70
Parameters
Returns
True on success; on failure BeginSourceFileAction(), ExecuteAction() and EndSourceFileAction() will not be called.
¶std::unique_ptr<ASTConsumer> CreateASTConsumer(
clang::CompilerInstance& CI,
llvm::StringRef InFile)
std::unique_ptr<ASTConsumer> CreateASTConsumer(
clang::CompilerInstance& CI,
llvm::StringRef InFile)
Description
Create the AST consumer object for this action, if supported. This routine is called as part of BeginSourceFile(), 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.
Declared at: clang/include/clang/ARCMigrate/ARCMTActions.h:68
Parameters
- clang::CompilerInstance& CI
- - The current compiler instance, provided as a convenience, see getCompilerInstance().
- llvm::StringRef InFile
- - The current input file, provided as a convenience, see getCurrentFile().
Returns
The new AST consumer, or null on failure.
¶ObjCMigrateAction(
std::unique_ptr<FrontendAction> WrappedAction,
llvm::StringRef migrateDir,
unsigned int migrateAction)
ObjCMigrateAction(
std::unique_ptr<FrontendAction> WrappedAction,
llvm::StringRef migrateDir,
unsigned int migrateAction)
Declared at: clang/include/clang/ARCMigrate/ARCMTActions.h:64
Parameters
- std::unique_ptr<FrontendAction> WrappedAction
- llvm::StringRef migrateDir
- unsigned int migrateAction