clang API Documentation

Public Member Functions | Protected Member Functions
clang::arcmt::ObjCMigrateAction Class Reference

Migrates to modern ObjC syntax. More...

#include <ARCMTActions.h>

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

List of all members.

Public Member Functions

 ObjCMigrateAction (FrontendAction *WrappedAction, StringRef migrateDir, unsigned migrateAction)

Protected Member Functions

std::unique_ptr< ASTConsumerCreateASTConsumer (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.

Detailed Description

Migrates to modern ObjC syntax.

Definition at line 58 of file ARCMTActions.h.


Constructor & Destructor Documentation

ObjCMigrateAction::ObjCMigrateAction ( FrontendAction WrappedAction,
StringRef  migrateDir,
unsigned  migrateAction 
)

Definition at line 182 of file ObjCMT.cpp.


Member Function Documentation

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.

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

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.

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().


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