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

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 9 17:47:24 PDT 2023


owenpan updated this revision to Diff 538470.
owenpan added a reviewer: sstwcw.
owenpan removed a subscriber: sstwcw.
owenpan added a comment.

Don't treat `(` as `l_paren` if it's followed by `{`.


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.538470.patch
Type: text/x-patch
Size: 14851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230710/2757226e/attachment-0001.bin>


More information about the cfe-commits mailing list