9#ifndef LLVM_CLANG_ARCMIGRATE_ARCMT_H
10#define LLVM_CLANG_ARCMIGRATE_ARCMT_H
18 class DiagnosticConsumer;
19 class PCHContainerOperations;
42 std::shared_ptr<PCHContainerOperations> PCHContainerOps,
44 bool emitPremigrationARCErrors =
false,
45 StringRef plistOut = StringRef());
54 std::shared_ptr<PCHContainerOperations> PCHContainerOps,
70 std::shared_ptr<PCHContainerOperations> PCHContainerOps,
72 bool emitPremigrationARCErrors, StringRef plistOut);
87 std::vector<std::pair<std::string,std::string> > &remap,
94 bool NoFinalizeRemoval);
98 std::shared_ptr<PCHContainerOperations> PCHContainerOps;
106 std::shared_ptr<PCHContainerOperations> PCHContainerOps,
108 StringRef outputDir = StringRef());
Defines the clang::SourceLocation class and associated facilities.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Represents a character-granular source range.
Helper class for holding the data necessary to invoke the compiler.
Abstract interface, implemented by clients of the front-end, which formats and prints fully processed...
Encodes a location in the source.
virtual void start(ASTContext &Ctx)
virtual void remove(CharSourceRange range)
virtual ~RewriteListener()
Anchor for VTable.
virtual void insert(SourceLocation loc, StringRef text)
FileRemapper & getRemapper()
bool applyTransform(TransformFn trans, RewriteListener *listener=nullptr)
bool getFileRemappings(std::vector< std::pair< std::string, std::string > > &remap, StringRef outputDir, DiagnosticConsumer *DiagClient)
Get the set of file remappings from the outputDir path that migrateWithTemporaryFiles produced.
bool getFileRemappingsFromFileList(std::vector< std::pair< std::string, std::string > > &remap, ArrayRef< StringRef > remapFiles, DiagnosticConsumer *DiagClient)
Get the set of file remappings from a list of files with remapping info.
std::vector< TransformFn > getAllTransformations(LangOptions::GCMode OrigGCMode, bool NoFinalizeRemoval)
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(* TransformFn)(MigrationPass &pass)
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 ...
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,...
The JSON file list parser is used to communicate input to InstallAPI.