diff options
author | Daniel Jasper <djasper@google.com> | 2013-02-13 19:25:54 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-02-13 19:25:54 +0000 |
commit | 42f458d164cbbee23e55e874b6cee7026ca721ca (patch) | |
tree | 4d044a0d7a963cbd97390413446f05527a935d3f /unittests/Format/FormatTest.cpp | |
parent | 82064213e9ef308e9a929ecfb31f4698a834ecdd (diff) |
Fix comment alignment close to the column limit.
Due to an error in one of the expressions, we used to not align comments
although it would have been possible.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 354654b1e2..8fb4b2acd5 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -465,6 +465,9 @@ TEST_F(FormatTest, UnderstandsSingleLineComments) { " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa || aaaaaaaaaaaaaaaaaaaaaaaaaaaa ||\n" " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa || aaaaaaaaaaaaaaaaaaaaaaaaaaaaa;"); + verifyFormat("int aaaa; // aaaaa\n" + "int aa; // aaaaaaa", getLLVMStyleWithColumns(20)); + EXPECT_EQ("void f() { // This does something ..\n" "}\n" "int a; // This is unrelated", |