[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 10 23:50:52 PDT 2024


================
@@ -1203,6 +1214,10 @@ unsigned ContinuationIndenter::addTokenOnNewLine(LineState &State,
     }
   }
 
+  if (!Style.BinPackBinaryOperations && Previous.is(TT_BinaryOperator) &&
+      (Previous.getPrecedence() > prec::Conditional)) {
+    CurrentState.BreakBeforeParameter = true;
----------------
mydeveloperday wrote:

which test is for this condition

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


More information about the cfe-commits mailing list