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
Showing
- include/clang/Format/Format.h 6 additions, 0 deletionsinclude/clang/Format/Format.h
- lib/Format/Format.cpp 50 additions, 24 deletionslib/Format/Format.cpp
- lib/Format/FormatToken.h 1 addition, 0 deletionslib/Format/FormatToken.h
- lib/Format/TokenAnnotator.cpp 1 addition, 0 deletionslib/Format/TokenAnnotator.cpp
- lib/Format/UnwrappedLineParser.cpp 1 addition, 0 deletionslib/Format/UnwrappedLineParser.cpp
- unittests/Format/FormatTest.cpp 19 additions, 13 deletionsunittests/Format/FormatTest.cpp
Loading
Please register or sign in to comment