[clang] [clang-format] Change BinPackParameters to enum and add AlwaysOnePerLine (PR #101882)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 20 08:52:39 PDT 2024


================
@@ -5475,6 +5475,14 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
     return true;
   }
 
+  // Ignores the first parameter as this will be handled separately by
+  // BreakFunctionDefinitionParameters or AlignAfterOpenBracket.
+  if (FormatStyle::BPPS_AlwaysOnePerLine == Style.BinPackParameters &&
----------------
owenca wrote:

```suggestion
  if (Style.BinPackParameters == FormatStyle::BPPS_AlwaysOnePerLine &&
```

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


More information about the cfe-commits mailing list