Home
last modified time | relevance | path

Searched refs:StatCache (Results 1 – 10 of 10) sorted by relevance

/llvm-project/clang-tools-extra/clangd/
H A DFS.cpp38 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 DPreamble.h77 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 DFS.h68 llvm::StringMap<llvm::vfs::Status> StatCache; variable
H A DPreamble.cpp657 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 DParsedAST.cpp414 if (Preamble && Preamble->StatCache) in build()
415 VFS = Preamble->StatCache->getConsumingFS(std::move(VFS)); in build()
H A DCodeComplete.cpp1414 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 DFSTests.cpp25 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 DFileManagerTest.cpp267 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 DFileManager.cpp60 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 DFileManager.h124 std::unique_ptr<FileSystemStatCache> StatCache; variable