From 5d2587daa2b5218094fbe7c2395a49e87f9bd29f Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Thu, 27 Mar 2014 16:14:13 +0000 Subject: 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 --- clang/unittests/Format/FormatTest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clang/unittests/Format/FormatTest.cpp') 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" -- cgit v1.2.3