We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf439ed commit 91f9c9cCopy full SHA for 91f9c9c
clang/lib/AST/ASTDumper.cpp
@@ -1989,18 +1989,13 @@ void ASTDumper::dumpStmt(const Stmt *S) {
1989
return;
1990
}
1991
1992
+ ConstStmtVisitor<ASTDumper>::Visit(S);
1993
+
1994
// Some statements have custom mechanisms for dumping their children.
- if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) {
- VisitDeclStmt(DS);
1995
- return;
1996
- }
1997
- if (const GenericSelectionExpr *GSE = dyn_cast<GenericSelectionExpr>(S)) {
1998
- VisitGenericSelectionExpr(GSE);
+ if (isa<DeclStmt>(S) || isa<GenericSelectionExpr>(S)) {
1999
2000
2001
2002
- ConstStmtVisitor<ASTDumper>::Visit(S);
2003
-
2004
for (const Stmt *SubStmt : S->children())
2005
dumpStmt(SubStmt);
2006
});
0 commit comments