[clang] [clang][DependencyScanning] Remove dependency on clangDriver from clangDependencyScanning (PR #169964)
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 5 09:11:14 PST 2025
================
@@ -17,17 +17,53 @@ module transitive { header "transitive.h" }
// This is here to verify that the "root" directory doesn't clash with name of
// the "root" module.
+//--- main.cpp
+// empty
+
//--- cdb.json.template
[{
"file": "",
"directory": "DIR",
- "command": "clang -fmodules -fmodules-cache-path=DIR/cache -I DIR -x c"
+ "command": "clang -fmodules -fmodules-cache-path=DIR/cache -I DIR -x c main.cpp"
----------------
jansvoboda11 wrote:
I think the entire point of the by-module-name scan is that you don't need an input file. Why is this necessary?
https://github.com/llvm/llvm-project/pull/169964
More information about the cfe-commits
mailing list