14 using namespace clang;
15 using namespace arcmt;
55 bool emitPremigrationARCErrors)
57 PlistOut(plistOut), EmitPremigrationARCErros(emitPremigrationARCErrors) {
58 if (MigrateDir.empty())
CompilerInvocation & getInvocation()
DiagnosticConsumer * getClient()
Abstract base class for actions which can be performed by the frontend.
bool BeginInvocation(CompilerInstance &CI) override
Callback before starting processing a single input, giving the opportunity to modify the CompilerInvo...
bool applyTransformations(CompilerInvocation &origCI, const FrontendInputFile &Input, std::shared_ptr< PCHContainerOperations > PCHContainerOps, DiagnosticConsumer *DiagClient)
Works similar to checkForManualIssues but instead of checking, it applies automatic modifications to ...
const FrontendInputFile & getCurrentInput() const
bool checkForManualIssues(CompilerInvocation &CI, const FrontendInputFile &Input, std::shared_ptr< PCHContainerOperations > PCHContainerOps, DiagnosticConsumer *DiagClient, bool emitPremigrationARCErrors=false, StringRef plistOut=StringRef())
Creates an AST with the provided CompilerInvocation but with these changes: -if a PCH/PTH is set...
DiagnosticsEngine & getDiagnostics() const
Get the current diagnostics engine.
CheckAction(FrontendAction *WrappedAction)
std::shared_ptr< PCHContainerOperations > getPCHContainerOperations() const
bool migrateWithTemporaryFiles(CompilerInvocation &origCI, const FrontendInputFile &Input, std::shared_ptr< PCHContainerOperations > PCHContainerOps, DiagnosticConsumer *DiagClient, StringRef outputDir, bool emitPremigrationARCErrors, StringRef plistOut)
Applies automatic modifications and produces temporary files and metadata into the outputDir path...
void setIgnoreAllWarnings(bool Val)
When set to true, any unmapped warnings are ignored.
A frontend action which simply wraps some other runtime-specified frontend action.
MigrateAction(FrontendAction *WrappedAction, StringRef migrateDir, StringRef plistOut, bool emitPremigrationARCErrors)
bool BeginInvocation(CompilerInstance &CI) override
Callback before starting processing a single input, giving the opportunity to modify the CompilerInvo...
bool BeginInvocation(CompilerInstance &CI) override
Callback before starting processing a single input, giving the opportunity to modify the CompilerInvo...
ModifyAction(FrontendAction *WrappedAction)