clang API Documentation
#include <ARCMT.h>
Classes | |
class | RewriteListener |
Public Member Functions | |
MigrationProcess (const CompilerInvocation &CI, DiagnosticConsumer *diagClient, StringRef outputDir=StringRef()) | |
bool | applyTransform (TransformFn trans, RewriteListener *listener=nullptr) |
FileRemapper & | getRemapper () |
Public Attributes | |
bool | HadARCErrors |
MigrationProcess::MigrationProcess | ( | const CompilerInvocation & | CI, |
DiagnosticConsumer * | diagClient, | ||
StringRef | outputDir = StringRef() |
||
) |
Definition at line 502 of file ARCMT.cpp.
References clang::CompilerInvocationBase::getDiagnosticOpts(), and clang::arcmt::FileRemapper::initFromDisk().
bool MigrationProcess::applyTransform | ( | TransformFn | trans, |
RewriteListener * | listener = nullptr |
||
) |
Definition at line 515 of file ARCMT.cpp.
References clang::arcmt::FileRemapper::applyMappings(), clang::DiagnosticConsumer::BeginSourceFile(), clang::Rewriter::buffer_begin(), clang::Rewriter::buffer_end(), createInvocationForMigration(), clang::DiagnosticConsumer::EndSourceFile(), clang::SourceManager::getFileEntryForID(), clang::CompilerInvocationBase::getLangOpts(), clang::ASTContext::getLangOpts(), clang::FileEntry::getName(), clang::DiagnosticConsumer::getNumErrors(), clang::ASTContext::getSourceManager(), HadARCErrors, clang::arcmt::CapturedDiagList::hasErrors(), clang::ASTUnit::LoadFromCompilerInvocationAction(), clang::arcmt::FileRemapper::remap(), clang::arcmt::CapturedDiagList::reportDiagnostics(), and clang::RewriteBuffer::write().
Referenced by applyTransforms().
FileRemapper& clang::arcmt::MigrationProcess::getRemapper | ( | ) | [inline] |
Definition at line 118 of file ARCMT.h.
Referenced by applyTransforms().
Definition at line 100 of file ARCMT.h.
Referenced by applyTransform().