[PATCH] D45004: [clang-format] New style option IndentWrappedObjCMethodNames

Daniel Jasper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 5 09:54:30 PDT 2018


djasper added a comment.

I'd go to great lengths to avoid adding new config options and so I don't think this would be a bad trade-off to make.

Also, note that you might not actually have to change much. A FormatStyle already contains a reference to the FormatStyleSet it was created from and you can get the FormatStyle for a different language through that. It might just be a bit hacky and not easy to understand as is, but maybe there are easy abstractions that we could build around it.

At any rate, your proposal (always indenting for ObjC code) is also fine by me. Do you think that survey Google-style ObjC code is enough? What does Xcode do by default?


Repository:
  rC Clang

https://reviews.llvm.org/D45004





More information about the cfe-commits mailing list