[PATCH] D42650: [clang-format] New format param ObjCBinPackProtocolList

Ben Hamilton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 2 12:33:57 PST 2018


benhamilton marked 2 inline comments as done.
benhamilton added inline comments.


================
Comment at: lib/Format/ContinuationIndenter.cpp:1214
     // FIXME: We likely want to do this for more combinations of brackets.
     // Verify that it is wanted for ObjC, too.
     if (Current.is(tok::less) && Current.ParentBracket == tok::l_paren) {
----------------
benhamilton wrote:
> stephanemoore wrote:
> > With the new parameter does this comment still apply? Maybe we can remove it?
> Good point.
> 
> This is about <> brackets nested inside () parens, which I believe is applicable to Objective-C 2.0 generics passed to C/C++ functions, but not to protocol conformance lists.
> 
> I'll send out a separate diff to add tests and clean up this comment, since I think the behavior is wanted for ObjC as well, but I think it's unrelated to this diff.
Followup in D42864.


Repository:
  rC Clang

https://reviews.llvm.org/D42650





More information about the cfe-commits mailing list