[PATCH] D115967: [clang-format][NFC] Handle wrapping after => in mustBreakBefore()

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 20 02:00:11 PST 2021


MyDeveloperDay added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:2005
-      }
-      break;
     case tok::l_square:
----------------
Is this case not covered by this? I presume not as you didn't remove any unit tests

https://github.com/llvm/llvm-project/commit/516e054c05fcf92b89fbac3e22048f2c00cf218f

```
void f() {
   int i = {[operation setCompletionBlock : ^{
     [self onOperationDone];
   }] };
 }
```


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115967/new/

https://reviews.llvm.org/D115967



More information about the cfe-commits mailing list