[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


================
@@ -5458,6 +5458,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::PPS_BreakAlways == Style.PackParameters) &&
----------------
HazardyKnusperkeks wrote:

```suggestion
  if (FormatStyle::PPS_BreakAlways == Style.PackParameters &&
```

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


More information about the cfe-commits mailing list