diff options
author | Daniel Jasper <djasper@google.com> | 2015-06-03 09:26:03 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-06-03 09:26:03 +0000 |
commit | 5962fa80c2c41f5d467ff362f9a1db3abf243539 (patch) | |
tree | d4beb6157b9dece2d7a322eaa7da18e6130b56ac /clang/unittests/Format/FormatTest.cpp | |
parent | 4432d87578135648f35401c52b1462f4ebe24cd8 (diff) | |
download | bcm5719-llvm-5962fa80c2c41f5d467ff362f9a1db3abf243539.tar.gz bcm5719-llvm-5962fa80c2c41f5d467ff362f9a1db3abf243539.zip |
clang-format: Properly reset BreakBeforeParameter when wrapping
operators to the new line.
Before:
LOG_IF(aaa == //
bbb)
<< a
<< b;
After:
LOG_IF(aaa == //
bbb)
<< a << b;
llvm-svn: 238911
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 09e514e7cdb..69d6cee7dea 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4965,6 +4965,9 @@ TEST_F(FormatTest, AlignsPipes) { " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n" " aaaaaaaaaaaaaaaaaaaaa)\n" " << aaaaaaaaaaaaaaaaaaaaaaaaaa;"); + verifyFormat("LOG_IF(aaa == //\n" + " bbb)\n" + " << a << b;"); // Breaking before the first "<<" is generally not desirable. verifyFormat( |