diff options
author | Daniel Jasper <djasper@google.com> | 2013-05-30 17:27:48 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-05-30 17:27:48 +0000 |
commit | ce257f296b78ffb3585a168db4f077004cf24c66 (patch) | |
tree | 879c0d8372e2af77f0659a2149ca4c6bfe6ab805 /clang/unittests/Format/FormatTest.cpp | |
parent | 219ef811ca74b84771d5a6e33ffa58eb5a9c6e4c (diff) | |
download | bcm5719-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.cpp | 13 |
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; |