================
@@ -367,9 +371,12 @@ static void
serializeDescription(llvm::ArrayRef<CommentInfo> Description, json::
if (TextCommentsArray.kind() == json::Value::Null ||
TextCommentsArray.getAsArray()->empty())
continue;
- insertComment(Obj, TextCommentsArray, "ParagraphComments");
+ insertComment(DescriptionObj, TextCommentsArray, "ParagraphComments");
}
}
+ Obj["Description"] = std::move(DescriptionObj);
+ if (!Key.empty())
+ Obj[Key] = true;
----------------
SamrudhNelli wrote:
I will rename the key to `HasEnumMemberComments`.
> BTW, how is the JSON testing still passing? you added a new key, so I'd
> expect something needs to be updated.
Currently, enum.cpp does not contain any JSON tests.
https://github.com/llvm/llvm-project/pull/183085
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits