[clang] [clang][clang-scan-deps] Add named modules to format 'experimental-full' (PR #145221)
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 23 08:41:41 PDT 2025
================
@@ -521,8 +529,14 @@ class FullDeps {
} else {
JOS.object([&] {
JOS.attribute("clang-context-hash", StringRef(I.ContextHash));
+ if (I.ModuleName.size())
+ JOS.attribute("module-name", (I.ModuleName));
+ JOS.attributeArray("named-module-deps", [&] {
+ for (const auto &Dep : I.NamedModuleDeps)
+ JOS.value(Dep);
+ });
----------------
jansvoboda11 wrote:
Can we emit this only when `I.NamedModuleDeps` is not empty? This way, we don't need to update all the tests.
https://github.com/llvm/llvm-project/pull/145221
More information about the cfe-commits
mailing list