[PATCH] Added an option to allow short function bodies be placed on a single line.

Alexander Kornienko alexfh at google.com
Wed Nov 20 05:12:41 PST 2013


Hi klimek, djasper,

The AllowShortFunctionsOnASingleLine option now controls short function
body placement on a single line independent of the BreakBeforeBraces option.
Updated tests using BreakBeforeBraces other than BS_Attach.

http://llvm-reviews.chandlerc.com/D2230

Files:
  include/clang/Format/Format.h
  lib/Format/Format.cpp
  lib/Format/FormatToken.h
  lib/Format/TokenAnnotator.cpp
  lib/Format/UnwrappedLineParser.cpp
  unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2230.1.patch
Type: text/x-patch
Size: 11942 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131120/bff1ee45/attachment.bin>


More information about the cfe-commits mailing list