[PATCH] D50535: Fix selective formatting of ObjC scope

Arnaud Coomans via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 9 14:26:55 PDT 2018


acoomans added a comment.

I probably don't need a unit test AND a lit test, but I'm unsure which one is best here. Any suggestion?



================
Comment at: lib/Format/UnwrappedLineFormatter.cpp:1045-1047
+    if (TheLine.First->Next && TheLine.First->Next->Tok.isObjCAtKeyword(tok::objc_end)) {
+      ContinueFormatting = false;
+    }
----------------
Note to self: change the style to match `PreviousRBrace`


Repository:
  rC Clang

https://reviews.llvm.org/D50535





More information about the cfe-commits mailing list