@@ -659,7 +659,7 @@ struct FormatStyle {
659659
660660 // / If the function declaration doesn't fit on a line,
661661 // / allow putting all parameters of a function declaration onto
662- // / the next line even if ``BinPackParameters`` is ``false ``.
662+ // / the next line even if ``BinPackParameters`` is ``OnePerLine ``.
663663 // / \code
664664 // / true:
665665 // / void myFunction(
@@ -1192,20 +1192,36 @@ struct FormatStyle {
11921192 // / \version 3.7
11931193 bool BinPackArguments;
11941194
1195- // / If ``false``, a function declaration's or function definition's
1196- // / parameters will either all be on the same line or will have one line each.
1197- // / \code
1198- // / true:
1199- // / void f(int aaaaaaaaaaaaaaaaaaaa, int aaaaaaaaaaaaaaaaaaaa,
1200- // / int aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {}
1201- // /
1202- // / false:
1203- // / void f(int aaaaaaaaaaaaaaaaaaaa,
1204- // / int aaaaaaaaaaaaaaaaaaaa,
1205- // / int aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {}
1206- // / \endcode
1195+ // / Different way to try to fit all parameters on a line.
1196+ enum BinPackParametersStyle : int8_t {
1197+ // / Bin-pack parameters.
1198+ // / \code
1199+ // / void f(int a, int bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
1200+ // / int ccccccccccccccccccccccccccccccccccccccccccc);
1201+ // / \endcode
1202+ BPPS_BinPack,
1203+ // / Put all parameters on the current line if they fit.
1204+ // / Otherwise, put each one on its own line.
1205+ // / \code
1206+ // / void f(int a, int b, int c);
1207+ // /
1208+ // / void f(int a,
1209+ // / int b,
1210+ // / int ccccccccccccccccccccccccccccccccccccc);
1211+ // / \endcode
1212+ BPPS_OnePerLine,
1213+ // / Always put each parameter on its own line.
1214+ // / \code
1215+ // / void f(int a,
1216+ // / int b,
1217+ // / int c);
1218+ // / \endcode
1219+ BPPS_AlwaysOnePerLine,
1220+ };
1221+
1222+ // / The bin pack parameters style to use.
12071223 // / \version 3.7
1208- bool BinPackParameters;
1224+ BinPackParametersStyle BinPackParameters;
12091225
12101226 // / Styles for adding spacing around ``:`` in bitfield definitions.
12111227 enum BitFieldColonSpacingStyle : int8_t {
@@ -3414,7 +3430,7 @@ struct FormatStyle {
34143430 // / items into as few lines as possible when they go over ``ColumnLimit``.
34153431 // /
34163432 // / If ``Auto`` (the default), delegates to the value in
3417- // / ``BinPackParameters``. If that is ``true ``, bin-packs Objective-C
3433+ // / ``BinPackParameters``. If that is ``BinPack ``, bin-packs Objective-C
34183434 // / protocol conformance list items into as few lines as possible
34193435 // / whenever they go over ``ColumnLimit``.
34203436 // /
@@ -3426,13 +3442,13 @@ struct FormatStyle {
34263442 // / onto individual lines whenever they go over ``ColumnLimit``.
34273443 // /
34283444 // / \code{.objc}
3429- // / Always (or Auto, if BinPackParameters=true ):
3445+ // / Always (or Auto, if BinPackParameters==BinPack ):
34303446 // / @interface ccccccccccccc () <
34313447 // / ccccccccccccc, ccccccccccccc,
34323448 // / ccccccccccccc, ccccccccccccc> {
34333449 // / }
34343450 // /
3435- // / Never (or Auto, if BinPackParameters=false ):
3451+ // / Never (or Auto, if BinPackParameters!=BinPack ):
34363452 // / @interface ddddddddddddd () <
34373453 // / ddddddddddddd,
34383454 // / ddddddddddddd,
0 commit comments