[clang] [llvm] [clang][deps] Add in-flight query caching to `DependencyScanningFilesystemSharedCache` (PR #199680)
Artem Chikin via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 04:02:33 PDT 2026
================
@@ -10,9 +10,68 @@
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "gtest/gtest.h"
+#include <atomic>
+#include <condition_variable>
+#include <mutex>
+#include <thread>
using namespace clang::dependencies;
+namespace {
+
+/// VFS proxy that counts operations using atomic counters, suitable for use
+/// from concurrent tests where `llvm::vfs::TracingFileSystem`'s plain
+/// `std::size_t` counters would race.
+class AtomicTracingFileSystem : public llvm::vfs::ProxyFileSystem {
----------------
artemcm wrote:
Done in a separate commit.
https://github.com/llvm/llvm-project/pull/199680
More information about the llvm-commits
mailing list