[PATCH] D154484: [clang-format] Add an option to remove redundant parentheses

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 6 20:55:55 PDT 2023


owenpan updated this revision to Diff 537971.
owenpan added a comment.
This revision is now accepted and ready to land.

Don't remove the outermost double parentheses after `if`/`while` if there is an `=` inside. Also rename the options.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154484/new/

https://reviews.llvm.org/D154484

Files:
  clang/docs/ClangFormatStyleOptions.rst
  clang/docs/ReleaseNotes.rst
  clang/include/clang/Format/Format.h
  clang/lib/Format/Format.cpp
  clang/lib/Format/UnwrappedLineParser.cpp
  clang/lib/Format/UnwrappedLineParser.h
  clang/unittests/Format/ConfigParseTest.cpp
  clang/unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154484.537971.patch
Type: text/x-patch
Size: 14392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230707/01d840bc/attachment-0001.bin>


More information about the cfe-commits mailing list