[clang] [clang Dependency Scanning] Enhance File Caching Diagnostics (PR #144105)

Qiongsi Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 23 09:30:38 PDT 2025


================
@@ -107,31 +107,39 @@ DependencyScanningFilesystemSharedCache::getShardForUID(
   return CacheShards[Hash % NumShards];
 }
 
-std::vector<StringRef>
-DependencyScanningFilesystemSharedCache::getInvalidNegativeStatCachedPaths(
+std::vector<DependencyScanningFilesystemSharedCache::InvalidEntryDiagInfo>
+DependencyScanningFilesystemSharedCache::getInvalidEntryDiagInfo(
     llvm::vfs::FileSystem &UnderlyingFS) const {
   // Iterate through all shards and look for cached stat errors.
-  std::vector<StringRef> InvalidPaths;
+  std::vector<InvalidEntryDiagInfo> InvalidDiagInfo;
   for (unsigned i = 0; i < NumShards; i++) {
     const CacheShard &Shard = CacheShards[i];
     std::lock_guard<std::mutex> LockGuard(Shard.CacheLock);
----------------
qiongsiwu wrote:

Sounds good! I am leaving this here in this case.

https://github.com/llvm/llvm-project/pull/144105


More information about the cfe-commits mailing list