summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-03-27 09:43:54 +0000
committerDaniel Jasper <djasper@google.com>2014-03-27 09:43:54 +0000
commitc13ee34378f14733692c2714d02549563fa16431 (patch)
tree4385540eca93a0beb9ab8671ccf7da52e8f2a870 /clang/unittests/Format/FormatTest.cpp
parentb714601f8f0132fdced747de34752ee63d2bdc86 (diff)
downloadbcm5719-llvm-c13ee34378f14733692c2714d02549563fa16431.tar.gz
bcm5719-llvm-c13ee34378f14733692c2714d02549563fa16431.zip
clang-format: Correctly identify ObjC Block with return type.
llvm-svn: 204905
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 3da478c0923..fa8ed3828d4 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -8167,6 +8167,10 @@ TEST_F(FormatTest, FormatsBlocks) {
" secondBlock:^(Bar *b) {\n"
" // ...\n"
" int i;\n"
+ " }\n"
+ " thirdBlock:^Foo(Bar *b) {\n"
+ " // ...\n"
+ " int i;\n"
" }];");
verifyFormat("f(^{\n"
OpenPOWER on IntegriCloud