[PATCH] D16066: Add BeforeWhileInDoWhile BraceWrapping option
Eric Baker via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 11 07:35:50 PST 2016
ebaker355 created this revision.
ebaker355 added a subscriber: cfe-commits.
Herald added a subscriber: klimek.
Adds a new BraceWrapping option called BeforeWhileInDoWhile.
Code like this:
do {
// Some code
} while (1);
becomes:
do {
// Some code
}
while (1);
I couldn't think of a better name for the option than BeforeWhileInDoWhile. I'm open to suggestions!
Also, this is my first attempt at submitting a patch for this project. If I've done anything wrong, please let me know. Thanks!
http://reviews.llvm.org/D16066
Files:
docs/ClangFormatStyleOptions.rst
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/UnwrappedLineParser.cpp
unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16066.44505.patch
Type: text/x-patch
Size: 3869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160111/7c31b181/attachment-0001.bin>
More information about the cfe-commits
mailing list