| /llvm-project/clang-tools-extra/clangd/ |
| H A D | FS.cpp | 38 StatCache.insert({PathStore, std::move(S)}); in update() 48 auto I = StatCache.find(PathLookup); in lookup() 49 if (I != StatCache.end()) in lookup() 63 PreambleFileStatusCache &StatCache) in getProducingFS() argument 64 : ProxyFileSystem(std::move(FS)), StatCache(StatCache) {} in getProducingFS() 77 StatCache.update(getUnderlyingFS(), std::move(*S), Path.str()); in getProducingFS() 84 StatCache.update(getUnderlyingFS(), *S, Path.str()); in getProducingFS() 89 PreambleFileStatusCache &StatCache; in getProducingFS() member in clang::clangd::PreambleFileStatusCache::getProducingFS::CollectFS 101 const PreambleFileStatusCache &StatCache) in getConsumingFS() argument 102 : ProxyFileSystem(std::move(FS)), StatCache(StatCache) {} in getConsumingFS() [all …]
|
| H A D | Preamble.h | 77 void setStatCache(std::shared_ptr<PreambleFileStatusCache> StatCache) { in setStatCache() 78 this->StatCache = StatCache; 90 std::shared_ptr<PreambleFileStatusCache> StatCache; 124 std::shared_ptr<PreambleFileStatusCache> StatCache; 88 std::shared_ptr<PreambleFileStatusCache> StatCache; global() member 120 std::shared_ptr<PreambleFileStatusCache> StatCache; global() member
|
| H A D | FS.h | 68 llvm::StringMap<llvm::vfs::Status> StatCache; variable
|
| H A D | Preamble.cpp | 657 auto StatCache = std::make_shared<PreambleFileStatusCache>(AbsFileName); in buildPreamble() local 658 auto StatCacheFS = StatCache->getProducingFS(VFS); in buildPreamble() 715 Result->StatCache = StatCache; in buildPreamble() 724 Result->StatCache->getConsumingFS(VFS)); in buildPreamble() 725 // While extending the life of FileMgr and VFS, StatCache should also be in buildPreamble() 727 Ctx->setStatCache(Result->StatCache); in buildPreamble()
|
| H A D | ParsedAST.cpp | 414 if (Preamble && Preamble->StatCache) in build() 415 VFS = Preamble->StatCache->getConsumingFS(std::move(VFS)); in build()
|
| H A D | CodeComplete.cpp | 1414 if (Input.Preamble.StatCache) in semaCodeComplete() 1415 VFS = Input.Preamble.StatCache->getConsumingFS(std::move(VFS)); in semaCodeComplete()
|
| /llvm-project/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, "real"); in TEST() 41 auto ConsumeFS = StatCache.getConsumingFS(FS); in TEST()
|
| /llvm-project/clang/unittests/Basic/ |
| H A D | FileManagerTest.cpp | 267 auto StatCache = std::make_unique<FakeStatCache>(); in TEST_F() 268 StatCache->InjectDirectory("dir", 40); in TEST_F() 269 StatCache->InjectFile("dir/f1.cpp", 41); in TEST_F() 270 StatCache->InjectFile("dir/f1-alias.cpp", 41, "dir/f1.cpp"); in TEST_F() 271 StatCache->InjectFile("dir/f2.cpp", 42); in TEST_F() 272 StatCache->InjectFile("dir/f2-alias.cpp", 42, "dir/f2.cpp"); in TEST_F() 280 StatCache->InjectFile("dir/f1-alias-alias.cpp", 41, "dir/f1-alias.cpp"); in TEST_F() 282 manager.setStatCache(std::move(StatCache)); in TEST_F() 318 auto StatCache = std::make_unique<FakeStatCache>(); in TEST_F() 319 StatCache in TEST_F() 262 auto StatCache = std::make_unique<FakeStatCache>(); TEST_F() local 313 auto StatCache = std::make_unique<FakeStatCache>(); TEST_F() local 349 auto StatCache = std::make_unique<FakeStatCache>(); TEST_F() local [all...] |
| /llvm-project/clang/lib/Basic/ |
| H A D | FileManager.cpp | 60 StatCache = std::move(statCache); in setStatCache() 63 void FileManager::clearStatCache() { StatCache.reset(); } in clearStatCache() 593 return FileSystemStatCache::get(Path, Status, isFile, F, StatCache.get(), in getStatValue() 600 StatCache.get(), *FS, IsText); in getNoncachedStatValue()
|
| /llvm-project/clang/include/clang/Basic/ |
| H A D | FileManager.h | 124 std::unique_ptr<FileSystemStatCache> StatCache; variable
|