diff options
author | Daniel Jasper <djasper@google.com> | 2013-03-14 14:00:17 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-03-14 14:00:17 +0000 |
commit | bfa1edd8247b80e951a570ff2486fe5fa9898c41 (patch) | |
tree | dc853dd2d64d313411f67f4f56f0f3ee8902c02b /unittests/Format/FormatTest.cpp | |
parent | 923ebef120a37122ce50722a85cbe42c0c2dab53 (diff) |
Slightly improve formatting of longer pipe statements.
The stronger binding of a string ending in :/= does not really make
sense if it is the only character.
Before:
llvm::outs() << aaaaaaaaaaaaaaaaaaaaaaaa
<< "=" << bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
After:
llvm::outs() << aaaaaaaaaaaaaaaaaaaaaaaa << "="
<< bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index af580ddce7..3044c69cd0 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1628,6 +1628,8 @@ TEST_F(FormatTest, AlignsPipes) { " << \"ccccccccccccccccc = \" << ccccccccccccccccc\n" " << \"ddddddddddddddddd = \" << ddddddddddddddddd\n" " << \"eeeeeeeeeeeeeeeee = \" << eeeeeeeeeeeeeeeee;"); + verifyFormat("llvm::outs() << aaaaaaaaaaaaaaaaaaaaaaaa << \"=\"\n" + " << bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;"); } TEST_F(FormatTest, UnderstandsEquals) { |