[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
Fri Jan 7 13:59:42 PST 2022


owenpan updated this revision to Diff 398231.
owenpan added a comment.

- Use `verifyFormat` instead of `EXPECT_EQ`.
- Make this option have less impact on the unwrapped line parser by checking `Style.RemoveBracesLLVM`.
- Remove some unused code.


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.398231.patch
Type: text/x-patch
Size: 36134 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220107/4085cde3/attachment-0001.bin>


More information about the cfe-commits mailing list