Home
last modified time | relevance | path

Searched refs:statCache (Results 1 – 3 of 3) sorted by relevance

/minix3/external/bsd/llvm/dist/clang/unittests/Basic/
H A DFileManagerTest.cpp127 auto statCache = llvm::make_unique<FakeStatCache>(); in TEST_F() local
128 statCache->InjectDirectory("/tmp", 42); in TEST_F()
129 statCache->InjectFile("/tmp/test", 43); in TEST_F()
134 statCache->InjectDirectory(DirName, 44); in TEST_F()
135 statCache->InjectFile(FileName, 45); in TEST_F()
138 manager.addStatCache(std::move(statCache)); in TEST_F()
178 auto statCache = llvm::make_unique<FakeStatCache>(); in TEST_F() local
179 statCache->InjectDirectory(".", 41); in TEST_F()
180 statCache->InjectFile("foo.cpp", 42); in TEST_F()
181 statCache->InjectFile("bar.cpp", 43); in TEST_F()
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/Basic/
H A DFileManager.cpp67 void FileManager::addStatCache(std::unique_ptr<FileSystemStatCache> statCache, in addStatCache() argument
69 assert(statCache && "No stat cache provided?"); in addStatCache()
71 statCache->setNextStatCache(std::move(StatCache)); in addStatCache()
72 StatCache = std::move(statCache); in addStatCache()
80 LastCache->setNextStatCache(std::move(statCache)); in addStatCache()
83 void FileManager::removeStatCache(FileSystemStatCache *statCache) { in removeStatCache() argument
84 if (!statCache) in removeStatCache()
87 if (StatCache.get() == statCache) { in removeStatCache()
95 while (PrevCache && PrevCache->getNextStatCache() != statCache) in removeStatCache()
99 PrevCache->setNextStatCache(statCache->takeNextStatCache()); in removeStatCache()
/minix3/external/bsd/llvm/dist/clang/include/clang/Basic/
H A DFileManager.h197 void addStatCache(std::unique_ptr<FileSystemStatCache> statCache,
201 void removeStatCache(FileSystemStatCache *statCache);