[PATCH] D138358: [clang-format] Match all block braces

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 19 08:57:18 PST 2022


HazardyKnusperkeks created this revision.
HazardyKnusperkeks added reviewers: owenpan, MyDeveloperDay, rymiel.
HazardyKnusperkeks added a project: clang-format.
Herald added a project: All.
HazardyKnusperkeks requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Now every left and right brace of any block (even the block macros) point to each other through the `MatchingParen`.

This commit on it self is NFC (as far as I can see), it is a preparation for other change(s).

The brace removing part has been rewritten, because that took advantage of the `MatchingParen` field.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138358

Files:
  clang/lib/Format/UnwrappedLineParser.cpp
  clang/lib/Format/UnwrappedLineParser.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138358.476688.patch
Type: text/x-patch
Size: 8441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221119/1575d285/attachment-0001.bin>


More information about the cfe-commits mailing list