================ @@ -227,6 +227,14 @@ class ErrorReporter { llvm::errs() << "Can't apply replacements for file " << File << "\n"; } } + + auto BuildDir = Context.getCurrentBuildDirectory(); ---------------- PiotrZSL wrote:
I think you may need to do what is done in handleErrors method. Simply remember old value, change new value to build directory, and after call to overwriteChangedFiles restore it. By default getCurrentWorkingDirectory should return actually current working directory. https://github.com/llvm/llvm-project/pull/67839 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits