10 #ifndef LLVM_CLANG_ARCMIGRATE_ARCMT_H 11 #define LLVM_CLANG_ARCMIGRATE_ARCMT_H 19 class DiagnosticConsumer;
20 class PCHContainerOperations;
43 std::shared_ptr<PCHContainerOperations> PCHContainerOps,
45 bool emitPremigrationARCErrors =
false,
46 StringRef plistOut = StringRef());
55 std::shared_ptr<PCHContainerOperations> PCHContainerOps,
71 std::shared_ptr<PCHContainerOperations> PCHContainerOps,
73 bool emitPremigrationARCErrors, StringRef plistOut);
88 std::vector<std::pair<std::string,std::string> > &remap,
95 bool NoFinalizeRemoval);
99 std::shared_ptr<PCHContainerOperations> PCHContainerOps;
107 std::shared_ptr<PCHContainerOperations> PCHContainerOps,
109 StringRef outputDir = StringRef());
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 ...
Abstract interface, implemented by clients of the front-end, which formats and prints fully processed...
virtual ~RewriteListener()
Anchor for VTable.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Represents a character-granular source range.
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...
MigrationProcess(const CompilerInvocation &CI, std::shared_ptr< PCHContainerOperations > PCHContainerOps, DiagnosticConsumer *diagClient, StringRef outputDir=StringRef())
virtual void insert(SourceLocation loc, StringRef text)
Encodes a location in the source.
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)
Dataflow Directional Tag Classes.
std::vector< TransformFn > getAllTransformations(LangOptions::GCMode OrigGCMode, bool NoFinalizeRemoval)
Helper class for holding the data necessary to invoke the compiler.
virtual void start(ASTContext &Ctx)
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.
Defines the clang::SourceLocation class and associated facilities.
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...