-
- Downloads
clang-format: add option to merge empty function body
Summary: This option supplements the AllowShortFunctionsOnASingleLine flag, to merge empty function body at the beginning of the line: e.g. when the function is not short-enough and breaking braces after function. int f() {} Reviewers: krasimir, djasper Reviewed By: djasper Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D33447 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305272 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Format/Format.h 12 additions, 0 deletionsinclude/clang/Format/Format.h
- lib/Format/Format.cpp 5 additions, 3 deletionslib/Format/Format.cpp
- lib/Format/UnwrappedLineFormatter.cpp 10 additions, 1 deletionlib/Format/UnwrappedLineFormatter.cpp
- unittests/Format/FormatTest.cpp 125 additions, 0 deletionsunittests/Format/FormatTest.cpp
Loading
Please register or sign in to comment