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

Ben Hamilton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 29 08:38:18 PDT 2018


benhamilton marked an inline comment as done.
benhamilton added a comment.

> Do we have a public style guide that explicitly says to do this?

Good question! This was the result of internal discussion with the Google Objective-C style guide maintainers based on analysis of ObjC code at Google.

I took a look, and the C++ style guide doesn't seem to explicitly say to align wrapped function names on column 0 (although clang-format does that):

http://google.github.io/styleguide/cppguide.html#Function_Declarations_and_Definitions
http://google.github.io/styleguide/cppguide.html#Function_Calls

I will confirm with the ObjC style guide maintainers whether they want to explicitly list the desired ObjC behavior in the style guide.


Repository:
  rC Clang

https://reviews.llvm.org/D45004





More information about the cfe-commits mailing list