[PATCH] D44996: [clang-format] Ensure ObjC selectors with 0 args are annotated correctly

Daniel Jasper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 30 08:02:40 PDT 2018


djasper added inline comments.


================
Comment at: lib/Format/TokenAnnotator.cpp:1347
+    } else if (Current.isOneOf(tok::identifier, tok::kw_new) &&
+               Current.Previous && Current.Previous->is(TT_CastRParen) &&
+               Current.Previous->MatchingParen &&
----------------
Isn't it wrong that we detect this as a cast r_paren in the first place?


Repository:
  rC Clang

https://reviews.llvm.org/D44996





More information about the cfe-commits mailing list