clang API Documentation
Migrates to modern ObjC syntax. More...
#include <ARCMTActions.h>
Public Member Functions | |
ObjCMigrateAction (FrontendAction *WrappedAction, StringRef migrateDir, unsigned migrateAction) | |
Protected Member Functions | |
std::unique_ptr< ASTConsumer > | CreateASTConsumer (CompilerInstance &CI, StringRef InFile) override |
Create the AST consumer object for this action, if supported. | |
bool | BeginInvocation (CompilerInstance &CI) override |
Callback before starting processing a single input, giving the opportunity to modify the CompilerInvocation or do some other action before BeginSourceFileAction is called. |
Migrates to modern ObjC syntax.
Definition at line 58 of file ARCMTActions.h.
ObjCMigrateAction::ObjCMigrateAction | ( | FrontendAction * | WrappedAction, |
StringRef | migrateDir, | ||
unsigned | migrateAction | ||
) |
Definition at line 182 of file ObjCMT.cpp.
bool ObjCMigrateAction::BeginInvocation | ( | CompilerInstance & | CI | ) | [override, protected, virtual] |
Callback before starting processing a single input, giving the opportunity to modify the CompilerInvocation or do some other action before BeginSourceFileAction is called.
Reimplemented from clang::WrapperFrontendAction.
Definition at line 205 of file ObjCMT.cpp.
References clang::CompilerInstance::getDiagnostics(), clang::arcmt::FileRemapper::initFromDisk(), and clang::DiagnosticsEngine::setIgnoreAllWarnings().
std::unique_ptr< ASTConsumer > ObjCMigrateAction::CreateASTConsumer | ( | CompilerInstance & | CI, |
StringRef | InFile | ||
) | [override, protected, virtual] |
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.
CI | - The current compiler instance, provided as a convenience, see getCompilerInstance(). |
InFile | - The current input file, provided as a convenience, see getCurrentFile(). |
Reimplemented from clang::WrapperFrontendAction.
Definition at line 193 of file ObjCMT.cpp.
References clang::Preprocessor::addPPCallbacks(), clang::WrapperFrontendAction::CreateASTConsumer(), clang::CompilerInstance::getFileManager(), clang::CompilerInstance::getPreprocessor(), and clang::CompilerInstance::getSourceManager().