[clang-tools-extra] [clang-doc]: Enable horizontal wrapping on longer function definitions (PR #181417)
Samrudh Nelli via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 20 11:08:27 PST 2026
================
@@ -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:
> What you wrote isn't wrong, I just don't want to increase object size or the number of writes if we don't really need to. Plus it feels ... inefficient to track if every entry in a list is the last one. I do concede that it may be hard to work around that in mustache.
Understand your concerns, but I couldn't find a way around..😔
https://github.com/llvm/llvm-project/pull/181417
More information about the cfe-commits
mailing list