[clang-tools-extra] [clang-doc] Display enum type along with enum name in HTML view (PR #181347)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 20 10:03:28 PST 2026


================
@@ -560,6 +560,8 @@ static void serializeInfo(const EnumInfo &I, json::Object &Obj,
                           const std::optional<StringRef> &RepositoryUrl,
                           const std::optional<StringRef> &RepositoryLine) {
   serializeCommonAttributes(I, Obj, RepositoryUrl, RepositoryLine);
+  if(I.Name.empty())
+    Obj["Name"] = "(unnamed)";
----------------
ilovepi wrote:

Why this and the special handling below? I'd assume that if you set this here, then Name would never be empty in the Generators, right?

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


More information about the cfe-commits mailing list