summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-05-30 17:27:48 +0000
committerDaniel Jasper <djasper@google.com>2013-05-30 17:27:48 +0000
commitce257f296b78ffb3585a168db4f077004cf24c66 (patch)
tree879c0d8372e2af77f0659a2149ca4c6bfe6ab805 /clang/unittests/Format/FormatTest.cpp
parent219ef811ca74b84771d5a6e33ffa58eb5a9c6e4c (diff)
downloadbcm5719-llvm-ce257f296b78ffb3585a168db4f077004cf24c66.tar.gz
bcm5719-llvm-ce257f296b78ffb3585a168db4f077004cf24c66.zip
More fixes for clang-format's multiline comment breaking.
llvm-svn: 182940
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 07c57853860..bfe5459e37a 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -3641,17 +3641,26 @@ TEST_F(FormatTest, BlockComments) {
"/* */someCall(parameter);",
getLLVMStyleWithColumns(15)));
EXPECT_EQ("/*\n**\n*/", format("/*\n**\n*/"));
- // FIXME: Consider whether empty lines can dictated the left-most column.
EXPECT_EQ("/*\n"
"*\n"
" * aaaaaa\n"
- " * aaaaaa\n"
+ "* aaaaaa\n"
"*/",
format("/*\n"
"*\n"
" * aaaaaa aaaaaa\n"
"*/",
getLLVMStyleWithColumns(10)));
+ EXPECT_EQ("/*\n"
+ "**\n"
+ "* aaaaaa\n"
+ "* aaaaaa\n"
+ "*/",
+ format("/*\n"
+ "**\n"
+ "* aaaaaa aaaaaa\n"
+ "*/",
+ getLLVMStyleWithColumns(10)));
FormatStyle NoBinPacking = getLLVMStyle();
NoBinPacking.BinPackParameters = false;
OpenPOWER on IntegriCloud