From 66d19bdeef25611c9188b3f27b7d578df4b9a447 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Mon, 18 Feb 2013 11:59:17 +0000 Subject: Always break after multi-line string literals. Otherwise, other parameters can be quite hidden. Reformatted unittests/Format/FormatTest.cpp after this. Before: someFunction("Always break between multi-line" " string literals", and, other, parameters); After: someFunction("Always break between multi-line" " string literals", and, other, parameters); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175436 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/Format.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Format') diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index ee3516af0c..fa62752fe6 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -441,6 +441,7 @@ private: } else if (Current.is(tok::string_literal) && Previous.is(tok::string_literal)) { State.Column = State.Column - Previous.FormatTok.TokenLength; + State.Stack.back().BreakBeforeParameter = true; } else if (Current.is(tok::lessless) && State.Stack.back().FirstLessLess != 0) { State.Column = State.Stack.back().FirstLessLess; -- cgit v1.2.3-18-g5258