Searched refs:StatCache (Results 1 – 10 of 10) sorted by relevance
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A 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() 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() 103 if (auto S = StatCache.lookup(Path.str())) in getConsumingFS() [all …]
|
| H A D | FS.h | 67 llvm::StringMap<llvm::vfs::Status> StatCache; variable
|
| H A D | Preamble.h | 68 std::unique_ptr<PreambleFileStatusCache> StatCache; member
|
| H A D | Preamble.cpp | 532 auto StatCache = std::make_unique<PreambleFileStatusCache>(AbsFileName); in buildPreamble() local 533 auto StatCacheFS = StatCache->getProducingFS(VFS); in buildPreamble() 567 Result->StatCache = std::move(StatCache); in buildPreamble()
|
| H A D | ParsedAST.cpp | 350 if (Preamble && Preamble->StatCache) in build() 351 VFS = Preamble->StatCache->getConsumingFS(std::move(VFS)); in build()
|
| H A D | CodeComplete.cpp | 1286 if (Input.Preamble.StatCache) in semaCodeComplete() 1287 VFS = Input.Preamble.StatCache->getConsumingFS(std::move(VFS)); in semaCodeComplete()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A 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")).has_value()); in TEST() 32 EXPECT_TRUE(StatCache.lookup(testPath("y")).has_value()); in TEST() 34 EXPECT_FALSE(StatCache.lookup(testPath("main")).has_value()); in TEST() 40 StatCache.update(*FS, S); in TEST() 41 auto ConsumeFS = StatCache.getConsumingFS(FS); in TEST()
|
| /llvm-project-15.0.7/clang/unittests/Basic/ |
| H A D | FileManagerTest.cpp | 262 auto StatCache = std::make_unique<FakeStatCache>(); in TEST_F() local 263 StatCache->InjectDirectory("dir", 40); in TEST_F() 264 StatCache->InjectFile("dir/f1.cpp", 41); in TEST_F() 266 StatCache->InjectFile("dir/f2.cpp", 42); in TEST_F() 277 manager.setStatCache(std::move(StatCache)); in TEST_F() 331 auto StatCache = std::make_unique<FakeStatCache>(); in TEST_F() local 332 StatCache->InjectDirectory("dir", 40); in TEST_F() 333 StatCache->InjectFile("dir/f1.cpp", 41); in TEST_F() 334 StatCache->InjectFile("dir/f1-also.cpp", 41); in TEST_F() 336 StatCache->InjectFile("dir/f2.cpp", 42); in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | FileManager.cpp | 65 StatCache = std::move(statCache); in setStatCache() 68 void FileManager::clearStatCache() { StatCache.reset(); } in clearStatCache() 616 StatCache.get(), *FS); in getStatValue() 622 StatCache.get(), *FS); in getStatValue()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | FileManager.h | 118 std::unique_ptr<FileSystemStatCache> StatCache; variable
|