[clang] [clang] Cleanup IncludeLocMap (PR #106241)
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 28 01:15:52 PDT 2024
================
@@ -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
More information about the cfe-commits
mailing list