| 390 | } |
| 391 | |
| 392 | bool 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 |
no test coverage detected