-
- Downloads
[clang-format] New flag - BraceWrapping.AfterExternBlock
Summary: Bug: https://bugs.llvm.org/show_bug.cgi?id=34016 - **"extern C part"** **Problem:** Due to the lack of "brace wrapping extern" flag, clang format does parse the block after **extern** keyword moving the opening bracket to the header line always! **Patch description:** A new style added, new configuration flag - **BraceWrapping.AfterExternBlock** that allows us to decide whether we want a break before brace or not. Reviewers: djasper, krasimir Reviewed By: krasimir Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D37845 Contributed by @PriMee! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313354 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/ClangFormatStyleOptions.rst 15 additions, 0 deletionsdocs/ClangFormatStyleOptions.rst
- include/clang/Format/Format.h 14 additions, 0 deletionsinclude/clang/Format/Format.h
- lib/Format/Format.cpp 12 additions, 9 deletionslib/Format/Format.cpp
- lib/Format/UnwrappedLineFormatter.cpp 3 additions, 2 deletionslib/Format/UnwrappedLineFormatter.cpp
- lib/Format/UnwrappedLineParser.cpp 6 additions, 1 deletionlib/Format/UnwrappedLineParser.cpp
- unittests/Format/FormatTest.cpp 37 additions, 1 deletionunittests/Format/FormatTest.cpp
Loading
Please register or sign in to comment