/external/llvm-project/clang-tools-extra/clangd/ |
D | FS.cpp | 36 StatCache.insert({PathStore, std::move(S)}); in update() 46 auto I = StatCache.find(PathLookup); in lookup() 47 if (I != StatCache.end()) in lookup() 61 PreambleFileStatusCache &StatCache) in getProducingFS() argument 62 : ProxyFileSystem(std::move(FS)), StatCache(StatCache) {} in getProducingFS() 75 StatCache.update(getUnderlyingFS(), std::move(*S)); in getProducingFS() 82 StatCache.update(getUnderlyingFS(), *S); in getProducingFS() 87 PreambleFileStatusCache &StatCache; in getProducingFS() member in clang::clangd::PreambleFileStatusCache::getProducingFS::CollectFS 99 const PreambleFileStatusCache &StatCache) in getConsumingFS() argument 100 : ProxyFileSystem(std::move(FS)), StatCache(StatCache) {} in getConsumingFS() [all …]
|
D | Preamble.h | 53 std::unique_ptr<PreambleFileStatusCache> StatCache, 70 std::unique_ptr<PreambleFileStatusCache> StatCache; member
|
D | Preamble.cpp | 308 std::unique_ptr<PreambleFileStatusCache> StatCache, in PreambleData() argument 313 StatCache(std::move(StatCache)), CanonIncludes(std::move(CanonIncludes)) { in PreambleData() 345 auto StatCache = std::make_unique<PreambleFileStatusCache>(AbsFileName); in buildPreamble() local 348 StatCache->getProducingFS(VFS), in buildPreamble() 363 SerializedDeclsCollector.takeMacros(), std::move(StatCache), in buildPreamble()
|
D | FS.h | 67 llvm::StringMap<llvm::vfs::Status> StatCache; variable
|
D | ParsedAST.cpp | 249 if (Preamble && Preamble->StatCache) in build() 250 VFS = Preamble->StatCache->getConsumingFS(std::move(VFS)); in build()
|
D | CodeComplete.cpp | 1127 if (Input.Preamble.StatCache) in semaCodeComplete() 1128 VFS = Input.Preamble.StatCache->getConsumingFS(std::move(VFS)); in semaCodeComplete()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | FSTests.cpp | 25 PreambleFileStatusCache StatCache(testPath("main")); in TEST() local 26 auto ProduceFS = StatCache.getProducingFS(FS); in TEST() 31 EXPECT_TRUE(StatCache.lookup(testPath("x")).hasValue()); in TEST() 32 EXPECT_TRUE(StatCache.lookup(testPath("y")).hasValue()); in TEST() 34 EXPECT_FALSE(StatCache.lookup(testPath("main")).hasValue()); in TEST() 40 StatCache.update(*FS, S); in TEST() 41 auto ConsumeFS = StatCache.getConsumingFS(FS); in TEST()
|
/external/llvm-project/clang/unittests/Basic/ |
D | FileManagerTest.cpp | 282 auto StatCache = std::make_unique<FakeStatCache>(); in TEST_F() local 283 StatCache->InjectDirectory("dir", 40); in TEST_F() 284 StatCache->InjectFile("dir/f1.cpp", 41); in TEST_F() 285 StatCache->InjectFile("dir/f1-alias.cpp", 41, "dir/f1.cpp"); in TEST_F() 286 StatCache->InjectFile("dir/f2.cpp", 42); in TEST_F() 287 StatCache->InjectFile("dir/f2-alias.cpp", 42, "dir/f2.cpp"); in TEST_F() 295 StatCache->InjectFile("dir/f1-alias-alias.cpp", 41, "dir/f1-alias.cpp"); in TEST_F() 297 manager.setStatCache(std::move(StatCache)); in TEST_F() 354 auto StatCache = std::make_unique<FakeStatCache>(); in TEST_F() local 355 StatCache->InjectDirectory("dir", 40); in TEST_F() [all …]
|
/external/clang/lib/Basic/ |
D | FileManager.cpp | 66 if (AtBeginning || !StatCache.get()) { in addStatCache() 67 statCache->setNextStatCache(std::move(StatCache)); in addStatCache() 68 StatCache = std::move(statCache); in addStatCache() 72 FileSystemStatCache *LastCache = StatCache.get(); in addStatCache() 83 if (StatCache.get() == statCache) { in removeStatCache() 85 StatCache = StatCache->takeNextStatCache(); in removeStatCache() 90 FileSystemStatCache *PrevCache = StatCache.get(); in removeStatCache() 99 StatCache.reset(); in clearStatCaches() 468 return FileSystemStatCache::get(Path, Data, isFile, F,StatCache.get(), *FS); in getStatValue() 474 StatCache.get(), *FS); in getStatValue()
|
/external/llvm-project/clang/lib/Basic/ |
D | FileManager.cpp | 65 StatCache = std::move(statCache); in setStatCache() 68 void FileManager::clearStatCache() { StatCache.reset(); } in clearStatCache() 535 StatCache.get(), *FS); in getStatValue() 541 StatCache.get(), *FS); in getStatValue()
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | gcs_file_system.h | 414 using StatCache = ExpiringLRUCache<GcsFileStat>; variable 415 std::unique_ptr<StatCache> stat_cache_;
|
D | gcs_file_system.cc | 947 stat_cache_(new StatCache(stat_cache_max_age, stat_cache_max_entries)), in GcsFileSystem() 1591 StatCache::ComputeFunc compute_func = [this](const string& dirname, in FolderExists()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | FileManager.h | 113 std::unique_ptr<FileSystemStatCache> StatCache; variable
|
/external/clang/include/clang/Basic/ |
D | FileManager.h | 166 std::unique_ptr<FileSystemStatCache> StatCache; variable
|
/external/clang/lib/Frontend/ |
D | CacheTokens.cpp | 586 StatListener *StatCache = StatCacheOwner.get(); in CacheTokens() local 597 PP.getFileManager().removeStatCache(StatCache); in CacheTokens()
|