[PATCH] clang-format: Add option to break after definition return type for top-level functions only

Daniel Jasper djasper at google.com
Sat Jun 27 06:58:18 PDT 2015


================
Comment at: docs/ClangFormatStyleOptions.rst:246
@@ +245,3 @@
+
+  * ``DRTBS_Auto`` (in configuration: ``Auto``)
+    Break after return type automatically. ``PenaltyReturnTypeOnItsOwnLine``
----------------
"Auto" seems a bit "magic" here. Why not continue to call this option AlwaysBreakAfterDefinitionReturnType with the value (no, always, toplevel)? With this, I'd expect there to eventually be a never value which I don't think makes sense to implement.

http://reviews.llvm.org/D10774

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list