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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits