[clang] [Dependency Scanning] Teach `DependencyScanningTool::getModuleDependencies` to Process a List of Module Names (PR #129915)

Qiongsi Wu via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 5 11:30:48 PST 2025


================
@@ -748,17 +751,21 @@ bool DependencyScanningWorker::computeDependencies(
   InMemoryFS->setCurrentWorkingDirectory(WorkingDirectory);
   SmallString<128> FakeInputPath;
   // TODO: We should retry the creation if the path already exists.
-  llvm::sys::fs::createUniquePath(ModuleName + "-%%%%%%%%.input", FakeInputPath,
+  // FIXME: should we create files for multiple modules? I think so?
+  llvm::sys::fs::createUniquePath(ModuleNames[0] + "-%%%%%%%%.input",
----------------
qiongsiwu wrote:

What is the reason that we still need to create this file in memory? Should I create a "fake" file for each module in the list? 

https://github.com/llvm/llvm-project/pull/129915


More information about the cfe-commits mailing list