[clang] [clang][scan-deps] Report a scanned TU's visible modules (PR #147969)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 10 08:33:00 PDT 2025


================
@@ -519,6 +528,8 @@ class FullDeps {
                       });
                     JOS.attributeArray("clang-module-deps",
                                        toJSONSorted(JOS, I.ClangModuleDeps));
+                    JOS.attributeArray("visible-clang-modules",
----------------
jansvoboda11 wrote:

I'd suggest adding a flag to `clang-scan-deps` to include this information only if it was explicitly requested. That would reduce churn in unrelated test files and keep them focused on asserting what they actually care about.

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


More information about the cfe-commits mailing list