================
@@ -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:
> 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?
If you insist on not modifying `Obj["Name"]`, I will try updating the moustache
with `{{^Name}}`.
https://github.com/llvm/llvm-project/pull/181347
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits