================
@@ -583,7 +599,15 @@ static void serializeInfo(const EnumInfo &I, json::Object 
&Obj,
   }
 
   if (!I.Members.empty())
-    serializeArray(I.Members, Obj, "Members", SerializeInfoLambda);
----------------
SamrudhNelli wrote:

> Couldn't you just do this when actually inserting the comments into the enum 
> value JSON above?

We insert comments into the enum variables above, we don't have a pointer to 
the enum.
We set "HasComments" for the enum, if atleast one of it's variables has a 
comment.

https://github.com/llvm/llvm-project/pull/183085
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to