[PATCH] D119650: [clang-format] Handle PointerAlignment in `if` statements with initializers (C++17) the same way as in `for` loops.
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 13 03:31:15 PST 2022
HazardyKnusperkeks added inline comments.
================
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);
+}
----------------
Here a switch? I'm confused in which patch the function is added.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119650/new/
https://reviews.llvm.org/D119650
More information about the cfe-commits
mailing list