[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:55 PDT 2025


================
@@ -220,13 +220,41 @@ class DependencyScanningFilesystemSharedCache {
   CacheShard &getShardForFilename(StringRef Filename) const;
   CacheShard &getShardForUID(llvm::sys::fs::UniqueID UID) const;
 
-  /// Visits all cached entries and re-stat an entry using FS if
-  /// it is negatively stat cached. If re-stat succeeds on a path,
-  /// the path is added to InvalidPaths, indicating that the cache
-  /// may have erroneously negatively cached it. The caller can then
-  /// use InvalidPaths to issue diagnostics.
-  std::vector<StringRef>
-  getInvalidNegativeStatCachedPaths(llvm::vfs::FileSystem &UnderlyingFS) const;
+  struct InvalidEntryDiagInfo {
----------------
qiongsiwu wrote:

Good idea! 

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


More information about the cfe-commits mailing list