[clang] [clang-format] Add PackParameters enum option to replace BinPackParameters. (PR #101882)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 4 11:50:24 PDT 2024
================
@@ -411,7 +393,8 @@ bool ContinuationIndenter::mustBreak(const LineState &State) {
// sets BreakBeforeParameter to avoid bin packing and this creates a
// completely unnecessary line break after a template type that isn't
// line-wrapped.
- (Previous.NestingLevel == 1 || Style.BinPackParameters)) ||
+ (Previous.NestingLevel == 1 ||
+ (Style.PackParameters == FormatStyle::PPS_BinPack))) ||
----------------
HazardyKnusperkeks wrote:
```suggestion
(Style.PackParameters == FormatStyle::PPS_BinPack)) ||
```
https://github.com/llvm/llvm-project/pull/101882
More information about the cfe-commits
mailing list