[clang] [clang-format] Fix greatergreater (PR #122282)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 16 20:22:48 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 &&
----------------
owenca wrote:
```suggestion
return Style.BreakBinaryOperations != FormatStyle::BBO_Never &&
Current.CanBreakBefore &&
```
To have a smaller diff.
https://github.com/llvm/llvm-project/pull/122282
More information about the cfe-commits
mailing list