Lines Matching refs:If
87 // If this is an expr used in a stmt context, indent and newline it.
124 void PrintRawIfStmt(IfStmt *If);
238 void StmtPrinter::PrintRawIfStmt(IfStmt *If) {
240 if (If->getInit())
241 PrintInitStmt(If->getInit(), 4);
242 if (const DeclStmt *DS = If->getConditionVariableDeclStmt())
245 PrintExpr(If->getCond());
248 if (auto *CS = dyn_cast<CompoundStmt>(If->getThen())) {
251 OS << (If->getElse() ? " " : NL);
254 PrintStmt(If->getThen());
255 if (If->getElse()) Indent();
258 if (Stmt *Else = If->getElse()) {
270 PrintStmt(If->getElse());
275 void StmtPrinter::VisitIfStmt(IfStmt *If) {
277 PrintRawIfStmt(If);
1738 // If we have a conversion operator call only print the argument.
1916 // If there are no parens, this is list-initialization, and the braces are