[clang] [clang-format] Fix greatergreater (PR #122282)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 17 01:20:58 PST 2025


================
@@ -147,7 +147,8 @@ static bool startsNextOperand(const FormatToken &Current) {
 // Returns \c true if \c Current is a binary operation that must break.
 static bool mustBreakBinaryOperation(const FormatToken &Current,
                                      const FormatStyle &Style) {
-  return Style.BreakBinaryOperations != FormatStyle::BBO_Never &&
+  return Current.CanBreakBefore &&
+         Style.BreakBinaryOperations != FormatStyle::BBO_Never &&
----------------
andergnet wrote:

Done

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


More information about the cfe-commits mailing list