jansvoboda11 wrote: > Can this be tested?
Hmm, I'm not sure. The current tests for inferred module maps still pass. The other ways how `SourceManager` ends up overwriting a file are: * is by using the `-remap-file`, which is unsupported with modules (`ASTWriter` intentionally asserts), * using Clang rewriters (not sure if those can somehow end up in module files), * performing code completion (again, not sure if that can somehow end up in a module file). WDYT? https://github.com/llvm/llvm-project/pull/114085 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits