summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-03-27 16:14:13 +0000
committerDaniel Jasper <djasper@google.com>2014-03-27 16:14:13 +0000
commit5d2587daa2b5218094fbe7c2395a49e87f9bd29f (patch)
tree777ada61232f53fd418eb2535e4f7d9403406039 /clang/unittests/Format/FormatTest.cpp
parent9ee0e303d68054a8fdb1b071a7de6ddcc8b9ecd9 (diff)
downloadbcm5719-llvm-5d2587daa2b5218094fbe7c2395a49e87f9bd29f.tar.gz
bcm5719-llvm-5d2587daa2b5218094fbe7c2395a49e87f9bd29f.zip
clang-format: Avoid line-breaks that increase the current column.
While these might make sense for some rule (e.g. break after multi-line operand), they generally appear ugly and confusing. Before: fffffffffff(R\"x( multiline raw string literal xxxxxxxxxxxxxx )x\" + bbbbbb) After: fffffffffff(R\"x( multiline raw string literal xxxxxxxxxxxxxx )x\" + bbbbbb) llvm-svn: 204937
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 949167c8f56..b5a70760a41 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -6552,11 +6552,10 @@ TEST_F(FormatTest, CountsCharactersInMultilineRawStringLiterals) {
getGoogleStyleWithColumns(20)));
EXPECT_EQ("fffffffffff(R\"x(\n"
"multiline raw string literal xxxxxxxxxxxxxx\n"
- ")x\" +\n"
- " bbbbbb);",
+ ")x\" + bbbbbb);",
format("fffffffffff(R\"x(\n"
"multiline raw string literal xxxxxxxxxxxxxx\n"
- ")x\" + bbbbbb);",
+ ")x\" + bbbbbb);",
getGoogleStyleWithColumns(20)));
EXPECT_EQ("fffffffffff(\n"
" R\"x(\n"
OpenPOWER on IntegriCloud