================
@@ -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; }
----------------
evelez7 wrote:

https://github.com/rust-lang/rust/blob/3f9853562c73af38a5e6af8b0da1b2734a327e19/src/librustdoc/html/format.rs#L1315-L1321

Looks they do something similar to a full length heuristic, but rustdoc doesn't 
let the template engine handle the string. Probably easier to construct the 
string fully during generation and produce the literal string. Would also be 
easier in our case since highlight.js require `<pre>` tags.

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

Reply via email to