11#include "llvm/Support/Chrono.h"
12#include "llvm/Support/Process.h"
18 if (std::optional<std::string> MaybeNegStats =
19 llvm::sys::Process::GetEnv(
"CLANG_SCAN_CACHE_NEGATIVE_STATS")) {
20 if (MaybeNegStats->empty())
22 return llvm::StringSwitch<bool>(*MaybeNegStats)
33 StringRef Ext = llvm::sys::path::extension(Path);
36 if (Ext ==
".framework")
42 :
MakeVFS([] {
return llvm::vfs::createPhysicalFileSystem(); }),
43 BuildSessionTimestamp(
44 llvm::sys::toTimeT(std::chrono::system_clock::now())) {}
bool shouldCacheNegativeStatsForPath(StringRef Path)
bool shouldCacheNegativeStatsDefault()
The JSON file list parser is used to communicate input to InstallAPI.
std::function< IntrusiveRefCntPtr< llvm::vfs::FileSystem >()> MakeVFS
The function invoked to create each worker's VFS.
DependencyScanningServiceOptions()