[PATCH] D115060: [clang-format][NFC] Code Tidies in UnwrappedLineFormatter
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 16 13:14:22 PST 2022
HazardyKnusperkeks added inline comments.
================
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:288
+ // Try to merge a control statement block with left brace unwrapped.
+ if (TheLine->Last->is(tok::l_brace) &&
TheLine->First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for)) {
----------------
owenpan wrote:
> Is `TheLine->First != TheLine->Last` redundant?
This seems to be an error on my side.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115060/new/
https://reviews.llvm.org/D115060
More information about the cfe-commits
mailing list