MaskRay accepted this revision. MaskRay added a comment. This revision is now accepted and ready to land.
Thanks! `Node->getConditionVariableDeclStmt()` is how `StmtPrinter::VisitWhileStmt` prints the declaration in the condition. https://reviews.llvm.org/D102502 added `PCH/for-loop-init-ternary-operator-statement.cpp` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D153699/new/ https://reviews.llvm.org/D153699 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits