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

Birunthan Mohanathas birunthan at mohanathas.com
Fri Jun 26 11:46:56 PDT 2015


Hi djasper,

AlwaysBreakAfterDefinitionReturnType is not compatible with Mozilla style because it breaks after the return types of inline functions in addition to top-level functions. This adds BreakAfterDefinitionReturnType with options for the existing two choices as well as a new top-level only mode.

AlwaysBreakAfterDefinitionReturnType is removed from the documentation, but still taken into account for backward compatibility.

http://reviews.llvm.org/D10774

Files:
  docs/ClangFormatStyleOptions.rst
  include/clang/Format/Format.h
  lib/Format/ContinuationIndenter.cpp
  lib/Format/Format.cpp
  lib/Format/TokenAnnotator.cpp
  unittests/Format/FormatTest.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10774.28585.patch
Type: text/x-patch
Size: 12504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150626/dc28df03/attachment.bin>


More information about the cfe-commits mailing list