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

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 4 23:36:54 PDT 2024


================
@@ -27630,6 +27630,245 @@ TEST_F(FormatTest, SpaceBetweenKeywordAndLiteral) {
   verifyFormat("return sizeof \"5\";");
 }
 
+TEST_F(FormatTest, BreakBinaryOperations) {
+  auto Style = getLLVMStyleWithColumns(60);
+  // Logical operations
----------------
owenca wrote:

```suggestion
  EXPECT_EQ(Style.BreakBinaryOperations, FormatStyle::BBO_Never);

  // Logical operations
```

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


More information about the cfe-commits mailing list