[PATCH] D118911: [clang-format] regression from clang-format v13
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 3 08:37:39 PST 2022
curdeius accepted this revision.
curdeius added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:3084
+ if (!Previous || (Previous->isNot(tok::r_paren) &&
+ !Previous->isTypeOrIdentifier())) {
// Don't try parsing a lambda if we had a closing parenthesis before,
----------------
Maybe it would be easier to read if written `!(is(tok::r_paren) || isTypeOrIdentifier())`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118911/new/
https://reviews.llvm.org/D118911
More information about the cfe-commits
mailing list