[PATCH] D40221: [clang-format] Parse blocks in braced lists

Manuel Klimek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 11 00:39:28 PDT 2019


klimek added inline comments.


================
Comment at: lib/Format/UnwrappedLineParser.cpp:1324
+  nextToken();
+  if (!Style.isCpp()) {
+    // Blocks are only supported in C++ and Objective-C.
----------------
benhamilton wrote:
> Style: Remove curly braces for one-line if blocks.
> 
Isn't this only an Obj-C/Obj-C++ thing?
If it is, I'd call it tryToParseObjCBlockLiteral.


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

https://reviews.llvm.org/D40221





More information about the cfe-commits mailing list