diff options
author | Manuel Klimek <klimek@google.com> | 2013-02-20 15:32:58 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-02-20 15:32:58 +0000 |
commit | 0c91571d3379041ebaee2af4afdbf3c8a48645fa (patch) | |
tree | 7e6083f8e2d5f1325652184b1318c4035ceebce2 /clang/unittests/Format/FormatTest.cpp | |
parent | 56821acc79914bba7dd0934b72042ce0a1b554fe (diff) | |
download | bcm5719-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.cpp | 3 |
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) { |