Home
last modified time | relevance | path

Searched refs:ModuleCachePath (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTestTU.cpp77 llvm::SmallString<128> ModuleCachePath; in initializeModuleCache() local
78 if (llvm::sys::fs::createUniqueDirectory("module-cache", ModuleCachePath)) { in initializeModuleCache()
82 CI.getHeaderSearchOpts().ModuleCachePath = ModuleCachePath.c_str(); in initializeModuleCache()
85 void deleteModuleCache(const std::string ModuleCachePath) { in deleteModuleCache() argument
86 if (!ModuleCachePath.empty()) { in deleteModuleCache()
87 if (llvm::sys::fs::remove_directories(ModuleCachePath)) { in deleteModuleCache()
104 std::bind(deleteModuleCache, CI->getHeaderSearchOpts().ModuleCachePath)); in preamble()
119 std::bind(deleteModuleCache, CI->getHeaderSearchOpts().ModuleCachePath)); in build()
/llvm-project-15.0.7/clang/unittests/Serialization/
H A DModuleCacheTest.cpp30 ModuleCachePath = SmallString<256>(TestDir); in SetUp()
31 sys::path::append(ModuleCachePath, "mcp"); in SetUp()
32 ASSERT_FALSE(sys::fs::create_directories(ModuleCachePath)); in SetUp()
39 SmallString<256> ModuleCachePath; member in __anon7374ab6d0111::ModuleCacheTest
96 MCPArg.append(ModuleCachePath); in TEST_F()
145 MCPArg.append(ModuleCachePath); in TEST_F()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DHeaderSearch.h264 std::string ModuleCachePath; variable
399 ModuleCachePath = std::string(CachePath); in setModuleCachePath()
406 StringRef getModuleCachePath() const { return ModuleCachePath; } in getModuleCachePath()
H A DHeaderSearchOptions.h113 std::string ModuleCachePath; variable
/llvm-project-15.0.7/clang/tools/clang-scan-deps/
H A DClangScanDeps.cpp391 StringRef ModuleCachePath = llvm::sys::path::parent_path( in constructPCMPath() local
395 : ModuleCachePath); in constructPCMPath()
/llvm-project-15.0.7/clang/lib/Tooling/DependencyScanning/
H A DModuleDepCollector.cpp72 CI.getHeaderSearchOpts().ModuleCachePath.clear(); in makeInvocationForModuleBuildWithoutPaths()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DCompilerInstance.cpp544 SmallString<256> SpecificModuleCache(getHeaderSearchOpts().ModuleCachePath); in getSpecificModuleCachePath()
1565 TimestampFile = HSOpts.ModuleCachePath; in pruneModuleCache()
1595 llvm::sys::path::native(HSOpts.ModuleCachePath, ModuleCachePathNative); in pruneModuleCache()
H A DCompilerInvocation.cpp2971 if (!Opts.ModuleCachePath.empty()) in GenerateHeaderSearchArgs()
2972 GenerateArg(Args, OPT_fmodules_cache_path, Opts.ModuleCachePath, SA); in GenerateHeaderSearchArgs()
3109 Opts.ModuleCachePath = std::string(P.str()); in ParseHeaderSearchArgs()
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangExpressionParser.cpp298 search_opts.ModuleCachePath = std::string(module_cache.str()); in SetupModuleHeaderPaths()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReader.cpp4174 StringRef ModuleCachePath in loadGlobalIndex() local
4177 GlobalModuleIndex::readIndex(ModuleCachePath); in loadGlobalIndex()
5908 HSOpts.ModuleCachePath = ReadString(Record, Idx); in ParseHeaderSearchOptions()
H A DASTWriter.cpp1410 AddString(HSOpts.ModuleCachePath, Record); in WriteControlBlock()