================
@@ -350,6 +350,7 @@ void SourceManager::clearIDTables() {
   LastLineNoContentCache = nullptr;
   LastFileIDLookup = FileID();
 
+  IncludedLocMap.clear();
----------------
ilya-biryukov wrote:

Is there a way to write a unit test checking this behavior?

SourceManager should be relatively easy to mock, I think it'd be useful to 
write one.

https://github.com/llvm/llvm-project/pull/106241
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to