https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/191011
>From 5c0f6db094c33191d2b56a106cda9499df640a29 Mon Sep 17 00:00:00 2001 From: Erick Velez <[email protected]> Date: Wed, 8 Apr 2026 09:42:20 -0700 Subject: [PATCH 1/2] [clang-doc][NFC] Delete duplicate namespace serialization During the merging for the Mustache MD backend, I forgot to delete the earlier, obsolete serialization for namespaces. It's being overwritten by the correct call later. --- clang-tools-extra/clang-doc/JSONGenerator.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/clang-tools-extra/clang-doc/JSONGenerator.cpp b/clang-tools-extra/clang-doc/JSONGenerator.cpp index 8db7eaafcfb30..fa6ae08a44868 100644 --- a/clang-tools-extra/clang-doc/JSONGenerator.cpp +++ b/clang-tools-extra/clang-doc/JSONGenerator.cpp @@ -772,12 +772,6 @@ void JSONGenerator::serializeInfo(const NamespaceInfo &I, json::Object &Obj) { if (I.USR == GlobalNamespaceID) Obj["Name"] = "Global Namespace"; - if (!I.Children.Namespaces.empty()) { - serializeArray(I.Children.Namespaces, Obj, "Namespaces", - serializeReferenceLambda()); - Obj["HasNamespaces"] = true; - } - if (!I.Children.Functions.empty()) { serializeArray(I.Children.Functions, Obj, "Functions", serializeInfoLambda()); >From fdfd34ce0866402fbe9029d267e014050a1f0e0b Mon Sep 17 00:00:00 2001 From: Erick Velez <[email protected]> Date: Wed, 8 Apr 2026 10:03:26 -0700 Subject: [PATCH 2/2] delete duplicate typedef --- clang-tools-extra/clang-doc/JSONGenerator.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/clang-tools-extra/clang-doc/JSONGenerator.cpp b/clang-tools-extra/clang-doc/JSONGenerator.cpp index fa6ae08a44868..ccc0314ba5dde 100644 --- a/clang-tools-extra/clang-doc/JSONGenerator.cpp +++ b/clang-tools-extra/clang-doc/JSONGenerator.cpp @@ -460,8 +460,6 @@ void JSONGenerator::serializeMDReference(const Reference &Ref, ReferenceObj["BasePath"] = Path; } -typedef std::function<void(const Reference &, Object &)> ReferenceFunc; - // Although namespaces and records both have ScopeChildren, they serialize them // differently. Only enums, records, and typedefs are handled here. void JSONGenerator::serializeCommonChildren( _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
