From b77105d2cef9017a0348b99c08a90dec1354082b Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Tue, 8 Apr 2014 14:04:31 +0000 Subject: clang-format: Fix incorrect multi-block-parameter computation. llvm-svn: 205763 --- clang/unittests/Format/FormatTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/unittests/Format/FormatTest.cpp') diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index c7bd44c12d2..975f9c6939b 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -8249,6 +8249,12 @@ TEST_F(FormatTest, FormatsBlocks) { " // ...\n" " int i;\n" " }];"); + verifyFormat("[myObject doSomethingWith:arg1\n" + " firstBlock:-1\n" + " secondBlock:^(Bar *b) {\n" + " // ...\n" + " int i;\n" + " }];"); verifyFormat("f(^{\n" " @autoreleasepool {\n" -- cgit v1.2.3