diff options
| author | Daniel Jasper <djasper@google.com> | 2014-04-08 14:04:31 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-04-08 14:04:31 +0000 |
| commit | b77105d2cef9017a0348b99c08a90dec1354082b (patch) | |
| tree | cd0b591913cfbe4c69593106c989020ca242d951 /clang/unittests/Format/FormatTest.cpp | |
| parent | 50996ce1e332334f3fa1913e90992e1128a5abaf (diff) | |
| download | bcm5719-llvm-b77105d2cef9017a0348b99c08a90dec1354082b.tar.gz bcm5719-llvm-b77105d2cef9017a0348b99c08a90dec1354082b.zip | |
clang-format: Fix incorrect multi-block-parameter computation.
llvm-svn: 205763
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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" |

