================
@@ -34,9 +34,12 @@ static void serializeInfo(const RecordInfo &I, Object &Obj,
static void serializeReference(const Reference &Ref, Object &ReferenceObj);
template <typename Container, typename SerializationFunc>
-static void serializeArray(const Container &Records, Object &Obj,
- const std::string &Key,
- SerializationFunc SerializeInfo);
+static void serializeArray(
+ const Container &Records, Object &Obj, const StringRef Key,
+ SerializationFunc SerializeInfo, const StringRef EndKey = "End",
+ function_ref<void(Object &)> UpdateJson = [](Object &Obj) {});
+
+constexpr static unsigned getMaxParamWrapLimit() { return 2; }
----------------
SamrudhNelli wrote:
> @evelez7 the output looks OK to me, but we should consider something else
> long term. rustdoc output looks good to me, while this looks .... meh. Not
> the highest priority to fix the styling completely, but the current logic is
> pretty naive.
>
Another approach:
We could calculate the length,
length = (function name + function return value + $\Sigma${parameter return
value + parameter name}),
if length > maxLength, where maxLength is a predefined value, we could set
VerticalDisplay = true, and print one per line.
https://github.com/llvm/llvm-project/pull/181417
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits