MCPcopy Create free account
hub / github.com/beefytech/Beef / CachedFileExists

Method CachedFileExists

IDEHelper/Clang/CDepChecker.cpp:392–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392bool CDepChecker::CachedFileExists(const StringImpl& filePath)
393{
394 AutoPerf autoPerf("CachedFileExists", gPerfManagerPtr);
395
396 auto itr = mFileExistsCache.find(filePath);
397 if (itr != mFileExistsCache.end())
398 return itr->second;
399 auto fileExists = FileExists(filePath);
400 mFileExistsCache[filePath] = fileExists;
401 return fileExists;
402}
403
404//////////////////////////////////////////////////////////////////////////
405

Callers 1

IncludeHelperMethod · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected