================
@@ -452,8 +452,7 @@ static void serializeArray(const Container &Records, Object
&Obj,
json::Value ItemVal = Object();
auto &ItemObj = *ItemVal.getAsObject();
SerializeInfo(Records[Index], ItemObj);
- if (Index == Records.size() - 1)
- ItemObj["End"] = true;
+ ItemObj["End"] = (Index == Records.size() - 1);
----------------
SamrudhNelli wrote:
I introduced explicitly setting `End = false`, because `End` is set for the
last function and `{{End}}` returns true for every parameter inside the last
function. This is because the `{{^End}}` bubbles back the scope from `param` to
the `function`, if the `param` does not contain the `End` key.
https://github.com/llvm/llvm-project/pull/181417#issuecomment-3901820638
https://github.com/llvm/llvm-project/pull/181417
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits