aboutsummaryrefslogtreecommitdiff
path: root/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-02-20 15:32:58 +0000
committerManuel Klimek <klimek@google.com>2013-02-20 15:32:58 +0000
commite9a6226c7a2fd1c30a00990cdeb69b89f5599fb3 (patch)
tree81c5c3c294fa7b688e14f5101941e87098618985 /unittests/Format/FormatTest.cpp
parentb56b6d1bd6f41d7b944a9631a9ab481cafe6535b (diff)
Fix regression in string literal alignment.
Now correctly indents (again): a = a + "a" "a" "a"; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r--unittests/Format/FormatTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index ab4825b314..ca522084d5 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -1452,6 +1452,9 @@ TEST_F(FormatTest, AlignsStringLiterals) {
"\"aaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa "
"aaaaaaaaaaaaaaaaaaaaa\" "
"\"aaaaaaaaaaaaaaaa\";"));
+ verifyFormat("a = a + \"a\"\n"
+ " \"a\"\n"
+ " \"a\";");
}
TEST_F(FormatTest, AlignsPipes) {