// Stmts.
void VisitStmt(Stmt *Node);
- void VisitDeclStmt(DeclStmt *Node);
void VisitLabelStmt(LabelStmt *Node);
void VisitGotoStmt(GotoStmt *Node);
}
}
-void StmtDumper::VisitDeclStmt(DeclStmt *Node) {
- DumpStmt(Node);
- fprintf(F, "\n");
- for (ScopedDecl *D = Node->getDecl(); D; D = D->getNextDeclarator()) {
- ++IndentLevel;
- Indent();
- fprintf(F, "%p ", (void*)D);
- DumpDeclarator(D);
- if (D->getNextDeclarator())
- fprintf(F, "\n");
- --IndentLevel;
- }
-}
-
void StmtDumper::VisitLabelStmt(LabelStmt *Node) {
DumpStmt(Node);
fprintf(F, " '%s'\n", Node->getName());