================
@@ -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)";
----------------
SamrudhNelli wrote:
> I'm not sure how helpful this is. Currently, this will also probably print
> `enum (unnamed)` for all anonymous enums in the sidebar.
Or else, we could try just displaying `(unnamed)` for enums with no Name and no
explicit type set.
https://github.com/llvm/llvm-project/pull/181347
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits