summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-10-21 07:57:50 +0000
committerDaniel Jasper <djasper@google.com>2014-10-21 07:57:50 +0000
commitf1f267b447f60528440d2c066b29ab014ae7f90f (patch)
tree56251160f8bfb1e4acd28c24b5f6208706083f29 /clang/unittests/Format/FormatTest.cpp
parent38efc13191c5b46c45b52e8b69b53b6e40b64cc2 (diff)
downloadbcm5719-llvm-f1f267b447f60528440d2c066b29ab014ae7f90f.tar.gz
bcm5719-llvm-f1f267b447f60528440d2c066b29ab014ae7f90f.zip
clang-format: [ObjC] Fix spacing in block variable parameters.
Before: { void (^block)(Object * x); } After: { void (^block)(Object *x); } llvm-svn: 220270
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 4f451361fac..05e0fc5aa89 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -9162,6 +9162,7 @@ TEST_F(FormatTest, FormatsBlocks) {
verifyFormat("foo(^{ bar(); });");
verifyFormat("foo(a, ^{ bar(); });");
+ verifyFormat("{ void (^block)(Object *x); }");
verifyFormat("[operation setCompletionBlock:^{ [self onOperationDone]; }];");
verifyFormat("int i = {[operation setCompletionBlock:^{ [self "
OpenPOWER on IntegriCloud