[PATCH] clang-format: Support @autoreleasepool.

Daniel Jasper djasper at google.com
Tue Jun 23 04:26:06 PDT 2015


================
Comment at: lib/Format/UnwrappedLineParser.cpp:660
@@ -659,1 +659,3 @@
       return;
+    case tok::objc_autoreleasepool:
+      nextToken();
----------------
(I think this is also what Nico means): Join this case and the next. I think it makes sense to format "@autoreleasepool (foo) {" like @synchronized, even if it might not be valid syntax. If you care about not having parens here, extend the corresponding if-statement.

http://reviews.llvm.org/D10372

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list