[clang] [clang-format] add BinPackLongBracedLists style option (PR #112482)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 7 18:59:43 PST 2025


================
@@ -2520,6 +2536,9 @@ struct FormatStyle {
   /// (e.g. a type or variable name), clang-format formats as if the ``{}`` were
   /// the parentheses of a function call with that name. If there is no name,
   /// a zero-length name is assumed.
+  ///
+  /// ``BinPackArguments`` may be forced to true for initializer lists with
+  /// more than 20 items if ``BinPackLongBracedLists`` is true.
----------------
owenca wrote:

```suggestion
```
IMO, it only adds to the confusion.

https://github.com/llvm/llvm-project/pull/112482


More information about the cfe-commits mailing list