Lines Matching defs:If
88 // If this is an expr used in a stmt context, indent and newline it.
125 void PrintRawIfStmt(IfStmt *If);
305 void StmtPrinter::PrintRawIfStmt(IfStmt *If) {
306 if (If->isConsteval()) {
308 if (If->isNegatedConsteval())
312 PrintStmt(If->getThen());
313 if (Stmt *Else = If->getElse()) {
323 if (If->getInit())
324 PrintInitStmt(If->getInit(), 4);
325 if (const DeclStmt *DS = If->getConditionVariableDeclStmt())
328 PrintExpr(If->getCond());
331 if (auto *CS = dyn_cast<CompoundStmt>(If->getThen())) {
334 OS << (If->getElse() ? " " : NL);
337 PrintStmt(If->getThen());
338 if (If->getElse()) Indent();
341 if (Stmt *Else = If->getElse()) {
353 PrintStmt(If->getElse());
358 void StmtPrinter::VisitIfStmt(IfStmt *If) {
360 PrintRawIfStmt(If);
1954 // If we have a conversion operator call only print the argument.