Home | History | Annotate | Download | only in ARCMigrate

Lines Matching refs:Diag

51 bool FileRemapper::initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag,
54 return initFromFile(infoFile, Diag, ignoreIfFilesChanged);
57 bool FileRemapper::initFromFile(StringRef filePath, DiagnosticsEngine &Diag,
71 return report("Error opening file: " + infoFile, Diag);
81 Diag);
88 return report("File does not exist: " + fromFilename, Diag);
94 return report("File does not exist: " + toFilename, Diag);
100 return report("File was modified: " + fromFilename, Diag);
112 bool FileRemapper::flushToDisk(StringRef outputDir, DiagnosticsEngine &Diag) {
117 return report("Could not create directory: " + outputDir, Diag);
120 return flushToFile(infoFile, Diag);
123 bool FileRemapper::flushToFile(StringRef outputPath, DiagnosticsEngine &Diag) {
131 return report(errMsg, Diag);
153 return report("Could not create file: " + tempPath.str(), Diag);
170 bool FileRemapper::overwriteOriginal(DiagnosticsEngine &Diag,
182 Diag);
188 return report(errMsg, Diag);
274 bool FileRemapper::report(const Twine &err, DiagnosticsEngine &Diag) {
276 unsigned ID = Diag.getDiagnosticIDs()->getCustomDiagID(DiagnosticIDs::Error,
278 Diag.Report(ID);