================
@@ -441,10 +442,14 @@ serializeCommonChildren(const ScopeChildren &Children, 
json::Object &Obj,
   }
 }
 
+static void customize(Object &Obj, size_t Size) {
+  Obj["VerticalDisplay"] = Size > 2;
+}
+
----------------
ilovepi wrote:

I'd prefer this be a lambda used at the callsite. Then you can, probably even 
just capture a boolean constant for `Size > 2`.

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