clang API Documentation

Protected Member Functions
clang::arcmt::MigrateSourceAction Class Reference

#include <ARCMTActions.h>

Inheritance diagram for clang::arcmt::MigrateSourceAction:
Inheritance graph
[legend]
Collaboration diagram for clang::arcmt::MigrateSourceAction:
Collaboration graph
[legend]

List of all members.

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< ASTConsumerCreateASTConsumer (CompilerInstance &CI, StringRef InFile) override
 Create the AST consumer object for this action, if supported.

Detailed Description

Definition at line 36 of file ARCMTActions.h.


Member Function Documentation

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.

Returns:
True on success; on failure BeginSourceFileAction(), ExecuteAction() and EndSourceFileAction() will not be 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.

Parameters:
CI- The current compiler instance, provided as a convenience, see getCompilerInstance().
InFile- The current input file, provided as a convenience, see getCurrentFile().
Returns:
The new AST consumer, or null on failure.

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.


The documentation for this class was generated from the following files: