summaryrefslogtreecommitdiffstats
path: root/clang/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
commit0c91571d3379041ebaee2af4afdbf3c8a48645fa (patch)
tree7e6083f8e2d5f1325652184b1318c4035ceebce2 /clang/unittests/Format/FormatTest.cpp
parent56821acc79914bba7dd0934b72042ce0a1b554fe (diff)
downloadbcm5719-llvm-0c91571d3379041ebaee2af4afdbf3c8a48645fa.tar.gz
bcm5719-llvm-0c91571d3379041ebaee2af4afdbf3c8a48645fa.zip
Fix regression in string literal alignment.
Now correctly indents (again): a = a + "a" "a" "a"; llvm-svn: 175630
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index ab4825b3145..ca522084d5e 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud