Author: Jan Svoboda
Date: 2021-12-17T14:00:20+01:00
New Revision: 195a5294c28e982607cc11bc63c3be1c0e3c312b

URL: 
https://github.com/llvm/llvm-project/commit/195a5294c28e982607cc11bc63c3be1c0e3c312b
DIFF: 
https://github.com/llvm/llvm-project/commit/195a5294c28e982607cc11bc63c3be1c0e3c312b.diff

LOG: [clang][deps] NFC: Rename member variable

Added: 
    

Modified: 
    
clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h
    clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp

Removed: 
    


################################################################################
diff  --git 
a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h 
b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h
index 3981ccfd98c06..855ab0626b3dd 100644
--- 
a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h
+++ 
b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h
@@ -242,7 +242,7 @@ class DependencyScanningWorkerFilesystem : public 
llvm::vfs::ProxyFileSystem {
   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 eb99fb11fba37..664c118473b94 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);
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to