[PATCH] D119648: [clang-format] Fix PointerAlignment within lambdas in a multi-variable declaration statement.
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 13 03:28:14 PST 2022
HazardyKnusperkeks added a comment.
In D119648#3317212 <https://reviews.llvm.org/D119648#3317212>, @owenpan wrote:
> Does any C++ standard support init statements in `while` loops?
I actually thought there was. But that was a mistake. :)
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:32
static bool startsWithStatementWithInitializer(const AnnotatedLine &Line) {
return Line.startsWith(tok::kw_for) || Line.startsWith(tok::kw_if);
}
----------------
But switch can have such a statement.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119648/new/
https://reviews.llvm.org/D119648
More information about the cfe-commits
mailing list