================ @@ -28188,6 +28188,17 @@ TEST_F(FormatTest, BreakBinaryOperations) { " | byte_buffer[2] << 16\n" " | byte_buffer[3] << 24;", Style); + + Style.BreakBinaryOperations = FormatStyle::BBO_OnePerLine; + // Check operator >> special case + verifyFormat("std::cin\n" + " >> longOperand1\n" + " >> longOperand2\n" + " >> longOperand3\n" + " >> longOperand4\n" + " >> longOperand5\n" + " >> longOperand6;", ---------------- owenca wrote:
```suggestion // Check operator>> special case. verifyFormat("std::cin\n" " >> longOperand_1\n" " >> longOperand_2\n" " >> longOperand_3_;", ``` to test the case where the statement length just exceeds the column limit. https://github.com/llvm/llvm-project/pull/122282 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits