[PATCH] D133093: [clang-format] Fix a bug in merging blocks with a wrapped l_brace
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 31 23:30:40 PDT 2022
owenpan created this revision.
owenpan added reviewers: HazardyKnusperkeks, MyDeveloperDay, curdeius.
owenpan added a project: clang-format.
Herald added a project: All.
owenpan requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
When the opening brace of a control statement block is wrapped, we must check the previous line to determine whether to try to merge the block.
Fixes https://github.com/llvm/llvm-project/issues/38639.
Fixes https://github.com/llvm/llvm-project/issues/48007.
Fixes https://github.com/llvm/llvm-project/issues/57421.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133093
Files:
clang/lib/Format/UnwrappedLineFormatter.cpp
clang/unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133093.457184.patch
Type: text/x-patch
Size: 4263 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220901/8cbbf142/attachment.bin>
More information about the cfe-commits
mailing list