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

Stephane Moore via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 4 20:12:44 PDT 2018


stephanemoore added a comment.

Update:
I am proposing to update the Google Objective-C style guide to explicitly describe the desired indentation behavior.



================
Comment at: include/clang/Format/Format.h:1154-1163
+  /// \brief The style of indenting long function or method names wrapped
+  /// onto the next line.
+  enum IndentWrappedMethodStyle {
+    /// Automatically determine indenting style.
+    IWM_Auto,
+    /// Always indent wrapped method names.
+    IWM_Always,
----------------
benhamilton wrote:
> stephanemoore wrote:
> > Do we explicitly want these to be generic with the intent to later reuse the enum for C++ method wrapping style?
> I figured languages like Java and JS might want to customize this.
Gotcha; sounds reasonable to me.


Repository:
  rC Clang

https://reviews.llvm.org/D45004





More information about the cfe-commits mailing list