clang 20.0.0git
|
#include "clang/ARCMigrate/ARCMT.h"
Classes | |
class | RewriteListener |
Public Member Functions | |
MigrationProcess (CompilerInvocation &CI, std::shared_ptr< PCHContainerOperations > PCHContainerOps, DiagnosticConsumer *diagClient, StringRef outputDir=StringRef()) | |
bool | applyTransform (TransformFn trans, RewriteListener *listener=nullptr) |
FileRemapper & | getRemapper () |
Public Attributes | |
bool | HadARCErrors |
MigrationProcess::MigrationProcess | ( | CompilerInvocation & | CI, |
std::shared_ptr< PCHContainerOperations > | PCHContainerOps, | ||
DiagnosticConsumer * | diagClient, | ||
StringRef | outputDir = StringRef() |
||
) |
Definition at line 507 of file ARCMT.cpp.
References clang::CompilerInvocation::getDiagnosticOpts(), and clang::arcmt::FileRemapper::initFromDisk().
bool MigrationProcess::applyTransform | ( | TransformFn | trans, |
RewriteListener * | listener = nullptr |
||
) |
Definition at line 522 of file ARCMT.cpp.
References clang::arcmt::FileRemapper::applyMappings(), clang::arcmt::TransformActions::applyRewrites(), clang::DiagnosticConsumer::BeginSourceFile(), clang::Rewriter::buffer_begin(), clang::Rewriter::buffer_end(), createInvocationForMigration(), E, clang::DiagnosticConsumer::EndSourceFile(), clang::SourceManager::getFileEntryRefForID(), clang::CompilerInvocation::getLangOpts(), clang::ASTContext::getLangOpts(), clang::FileEntryRef::getName(), clang::DiagnosticConsumer::getNumErrors(), clang::ASTContext::getSourceManager(), HadARCErrors, clang::arcmt::CapturedDiagList::hasErrors(), clang::ASTUnit::LoadFromCompilerInvocationAction(), clang::arcmt::FileRemapper::remap(), and clang::arcmt::CapturedDiagList::reportDiagnostics().
Referenced by applyTransforms().
|
inline |
Definition at line 123 of file ARCMT.h.
Referenced by applyTransforms().
bool clang::arcmt::MigrationProcess::HadARCErrors |
Definition at line 103 of file ARCMT.h.
Referenced by applyTransform().