[clang] [clang-format] Add BreakFunctionDefinitionParameters option (PR #84988)

Ameer J via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 26 08:03:49 PDT 2024


================
@@ -5317,6 +5318,12 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
   if (Right.NewlinesBefore > 1 && Style.MaxEmptyLinesToKeep > 0)
     return true;
 
+  if (Style.BreakFunctionDefinitionParameters && Line.MightBeFunctionDecl &&
----------------
ameerj wrote:

Removed one unneeded check, the rest are all needed.

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


More information about the cfe-commits mailing list