[clang] [clang][deps] Add in-flight query caching to `DependencyScanningFilesystemSharedCache` (PR #199680)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Wed May 27 09:09:26 PDT 2026


================
@@ -310,9 +434,9 @@ DependencyScanningWorkerFilesystem::getOrCreateFileSystemEntry(
   if (!FilenameForLookup)
     return FilenameForLookup.getError();
 
-  if (const auto *Entry =
-          findEntryByFilenameWithWriteThrough(*FilenameForLookup))
+  if (const auto *Entry = LocalCache.findEntryByFilename(*FilenameForLookup))
----------------
jansvoboda11 wrote:

This seems to have dropped the semantics of writing-through the result from the shared cache to the local cache. But IIUC `computeAndStoreResult` now takes care of it. I think we should either rename that function or refactor the code such that it's clear what's happening here.

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


More information about the cfe-commits mailing list