]> granicus.if.org Git - clang/commit
Added an option to allow short function bodies be placed on a single line.
authorAlexander Kornienko <alexfh@google.com>
Wed, 20 Nov 2013 16:33:05 +0000 (16:33 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 20 Nov 2013 16:33:05 +0000 (16:33 +0000)
commit29997cd9a54aad6400ba7c97c4a2be3d9f4a2e8b
tree55d250b47931200f1105a776846e54c15e55122f
parentfb21072ddccec35be71916b80c54466e4ed7b404
Added an option to allow short function bodies be placed on a single line.

Summary:
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.

Addresses http://llvm.org/PR17888

Reviewers: klimek, djasper

Reviewed By: klimek

CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2230

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195256 91177308-0d34-0410-b5e6-96231b3b80d8
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