From 195a5294c28e982607cc11bc63c3be1c0e3c312b Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Fri, 17 Dec 2021 13:30:38 +0100 Subject: [PATCH] [clang][deps] NFC: Rename member variable --- .../Tooling/DependencyScanning/DependencyScanningFilesystem.h | 2 +- .../Tooling/DependencyScanning/DependencyScanningFilesystem.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h index 3981ccfd98c0..855ab0626b3d 100644 --- a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h +++ b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h @@ -242,7 +242,7 @@ private: DependencyScanningFilesystemSharedCache &SharedCache; /// The local cache is used by the worker thread to cache file system queries /// locally instead of querying the global cache every time. - DependencyScanningFilesystemLocalCache Cache; + DependencyScanningFilesystemLocalCache LocalCache; /// The optional mapping structure which records information about the /// excluded conditional directive skip mappings that are used by the /// currently active preprocessor. diff --git a/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp b/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp index eb99fb11fba3..664c118473b9 100644 --- a/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp +++ b/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp @@ -161,7 +161,7 @@ DependencyScanningWorkerFilesystem::getOrCreateFileSystemEntry( StringRef Filename) { bool ShouldBeMinimized = shouldMinimize(Filename); - const auto *Entry = Cache.getCachedEntry(Filename); + const auto *Entry = LocalCache.getCachedEntry(Filename); if (Entry && !Entry->needsUpdate(ShouldBeMinimized)) return EntryRef(ShouldBeMinimized, Entry);