[clang] [clang-format] Fix greatergreater (PR #122282)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 13 02:06:50 PST 2025
================
@@ -28188,6 +28188,16 @@ 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::cout\n"
+ " << longOperand1\n"
+ " << longOperand2\n"
+ " << longOperand3\n"
+ " << longOperand4\n"
+ " << longOperand5;",
----------------
andergnet wrote:
You are right, I mistakenly put the lessless operand instead of greatergreater in the test.
I have changed it and tested both with and without the fix. It should be ok now.
https://github.com/llvm/llvm-project/pull/122282
More information about the cfe-commits
mailing list