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

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 16 19:55:12 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 &&
----------------
owenca wrote:

Well explained. I forgot that unlike `<<`, `>>` has been split into two `>`s.

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


More information about the cfe-commits mailing list