clang API Documentation
#include <ARCMTActions.h>
Protected Member Functions | |
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. | |
std::unique_ptr< ASTConsumer > | CreateASTConsumer (CompilerInstance &CI, StringRef InFile) override |
Create the AST consumer object for this action, if supported. |
Definition at line 36 of file ARCMTActions.h.
bool MigrateSourceAction::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::FrontendAction.
Definition at line 1971 of file ObjCMT.cpp.
References clang::CompilerInstance::getDiagnostics(), and clang::DiagnosticsEngine::setIgnoreAllWarnings().
std::unique_ptr< ASTConsumer > MigrateSourceAction::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(). |
Implements clang::FrontendAction.
Definition at line 1996 of file ObjCMT.cpp.
References clang::Preprocessor::addPPCallbacks(), clang::CompilerInstance::getFileManager(), clang::CompilerInstance::getFrontendOpts(), clang::CompilerInstance::getPreprocessor(), clang::CompilerInstance::getSourceManager(), getWhiteListFilenames(), clang::FrontendOptions::ObjCMT_Literals, clang::FrontendOptions::ObjCMT_None, clang::FrontendOptions::ObjCMT_NsAtomicIOSOnlyProperty, clang::FrontendOptions::ObjCMT_Subscripting, clang::FrontendOptions::ObjCMTAction, clang::FrontendOptions::ObjCMTWhiteListPath, and clang::FrontendOptions::OutputFile.