diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-10-06 18:38:35 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-10-06 18:38:35 +0000 |
| commit | 62408480d9236c9555e865c0456a8d54d7ab97e6 (patch) | |
| tree | 5438c5484594fd77cbef2a0463523079745579e5 /clang | |
| parent | fae8cb0736c9282d1a40d4f7ef6af7cba7793244 (diff) | |
| download | bcm5719-llvm-62408480d9236c9555e865c0456a8d54d7ab97e6.tar.gz bcm5719-llvm-62408480d9236c9555e865c0456a8d54d7ab97e6.zip | |
Use Decl::decl_iterator instead of walking the ScopedDecl chain (which will soon be removed).
llvm-svn: 57190
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/AST/StmtDumper.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/AST/StmtDumper.cpp b/clang/lib/AST/StmtDumper.cpp index a0af132bc40..dd92e84e9d2 100644 --- a/clang/lib/AST/StmtDumper.cpp +++ b/clang/lib/AST/StmtDumper.cpp @@ -243,7 +243,9 @@ void StmtDumper::DumpDeclarator(Decl *D) { void StmtDumper::VisitDeclStmt(DeclStmt *Node) { DumpStmt(Node); fprintf(F,"\n"); - for (ScopedDecl *D = Node->getDecl(); D; D = D->getNextDeclarator()) { + for (DeclStmt::decl_iterator DI = Node->decl_begin(), DE = Node->decl_end(); + DI != DE; ++DI) { + ScopedDecl* D = *DI; ++IndentLevel; Indent(); fprintf(F, "%p ", (void*) D); |

