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

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 13 16:14:53 PST 2024


================
@@ -1208,6 +1208,21 @@ struct FormatStyle {
   /// \version 3.7
   bool BinPackArguments;
 
+  /// If ``BinPackArguments`` is ``false`` this option can override it if
+  /// ``true`` when 20 or more items are in a braced initializer list.
----------------
HazardyKnusperkeks wrote:

```suggestion
  /// If ``BinPackLongBracedLists`` is set it overrides ``BinPackArguments``, if there are 20 or more items are in a braced initializer list.
```

How about that? The current sentence is hard to read.

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


More information about the cfe-commits mailing list