[PATCH] D116316: [clang-format] Add an experimental option to remove optional control statement braces in LLVM C++ code
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 3 19:28:01 PST 2022
owenpan updated this revision to Diff 397184.
owenpan added a comment.
- Fixed a bug found by applying the patch on the entire `clang` source tree.
- Added an exception: the braces are not removed if the right one is followed by a comment on the same line.
- Updated an existing test case and added a new one.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116316/new/
https://reviews.llvm.org/D116316
Files:
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/lib/Format/UnwrappedLineParser.h
clang/unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116316.397184.patch
Type: text/x-patch
Size: 34427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220104/b1899ed9/attachment-0001.bin>
More information about the cfe-commits
mailing list