[PATCH] D115060: [clang-format][NFC] Code Tidies in UnwrappedLineFormatter
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 3 11:46:14 PST 2021
HazardyKnusperkeks created this revision.
HazardyKnusperkeks added reviewers: owenpan, MyDeveloperDay, curdeius.
HazardyKnusperkeks added a project: clang-format.
HazardyKnusperkeks requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
- Give I[1] a name:
- Easier to understand
- Easier to debug (since you don't go through operator[] everytime)
- TheLine->First != TheLine->Last follows since last is a l brace and first isn't.
- Factor the check for is(tok::l_brace) out.
- Drop else after return.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D115060
Files:
clang/lib/Format/UnwrappedLineFormatter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115060.391692.patch
Type: text/x-patch
Size: 7797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211203/4894b2cc/attachment-0001.bin>
More information about the cfe-commits
mailing list