diff options
author | Daniel Jasper <djasper@google.com> | 2013-02-06 20:07:35 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-02-06 20:07:35 +0000 |
commit | 15417ef20e3cda668351c67cc580587913f6bee8 (patch) | |
tree | fc3dd629ec341ed4bd69348dc6d46f770cf1f9ec /unittests/Format/FormatTest.cpp | |
parent | eb54aa584dbe19c0f7c4a9a0010815a85423858b (diff) |
Align trailing block comments like trailing line comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 7e88c4e34a..69096076ba 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1985,6 +1985,13 @@ TEST_F(FormatTest, BlockComments) { "bool aaaaaaaaaaaaa = /* trailing comment */\n" " aaaaaaaaaaaaaaaaaaaaaaaaaaa||aaaaaaaaaaaaaaaaaaaaaaaaa ||\n" " aaaaaaaaaaaaaaaaaaaaaaaaaaaa || aaaaaaaaaaaaaaaaaaaaaaaaaa;")); + EXPECT_EQ( + "int aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; /* comment */\n" + "int bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; /* comment */\n" + "int cccccccccccccccccccccccccccccc; /* comment */\n", + format("int aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; /* comment */\n" + "int bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; /* comment */\n" + "int cccccccccccccccccccccccccccccc; /* comment */\n")); } TEST_F(FormatTest, BlockCommentsInMacros) { |