summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-11-23 14:51:47 +0000
committerDaniel Jasper <djasper@google.com>2013-11-23 14:51:47 +0000
commit40bc7466a84ffbf5f5e900fb6fe69775809f57ab (patch)
tree46224073e06667425f12f863da51248d5c497a05 /clang/unittests/Format/FormatTest.cpp
parent446d1cd32ca5dcde8ca1d81c7c127ce659aa82c1 (diff)
downloadbcm5719-llvm-40bc7466a84ffbf5f5e900fb6fe69775809f57ab.tar.gz
bcm5719-llvm-40bc7466a84ffbf5f5e900fb6fe69775809f57ab.zip
clang-format: Fix incorrect space in parameters named by comment.
This fixes llvm.org/PR17979. Before: void f() { g(/*aaa=*/x, /*bbb=*/ !y); } After: void f() { g(/*aaa=*/x, /*bbb=*/!y); } llvm-svn: 195553
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index f279c272745..1dc5215d187 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -842,6 +842,7 @@ TEST_F(FormatTest, RemovesTrailingWhitespaceOfComments) {
TEST_F(FormatTest, UnderstandsBlockComments) {
verifyFormat("f(/*noSpaceAfterParameterNamingComment=*/true);");
+ verifyFormat("void f() { g(/*aaa=*/x, /*bbb=*/!y); }");
EXPECT_EQ(
"f(aaaaaaaaaaaaaaaaaaaaaaaaa, /* Trailing comment for aa... */\n"
" bbbbbbbbbbbbbbbbbbbbbbbbb);",
OpenPOWER on IntegriCloud