Lines Matching defs:If
53 // If this is an expr used in a stmt context, indent and newline it.
68 void PrintRawIfStmt(IfStmt *If);
191 void StmtPrinter::PrintRawIfStmt(IfStmt *If) {
193 if (const DeclStmt *DS = If->getConditionVariableDeclStmt())
196 PrintExpr(If->getCond());
199 if (CompoundStmt *CS = dyn_cast<CompoundStmt>(If->getThen())) {
202 OS << (If->getElse() ? ' ' : '\n');
205 PrintStmt(If->getThen());
206 if (If->getElse()) Indent();
209 if (Stmt *Else = If->getElse()) {
221 PrintStmt(If->getElse());
226 void StmtPrinter::VisitIfStmt(IfStmt *If) {
228 PrintRawIfStmt(If);