summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-02-13 04:07:26 +0000
committerJohn McCall <rjmccall@apple.com>2011-02-13 04:07:26 +0000
commit8322c3a19768bdc4f48dc7c206ed30035d9fa755 (patch)
treedd6e5f2da2678340e5dce3d2c765ef349c8f1b7e /clang/lib/Frontend
parent4f23f2be15d9d1342687dd49190dca0457fc9c9c (diff)
downloadbcm5719-llvm-8322c3a19768bdc4f48dc7c206ed30035d9fa755.tar.gz
bcm5719-llvm-8322c3a19768bdc4f48dc7c206ed30035d9fa755.zip
Give some convenient idiomatic accessors to Stmt::child_range and
Stmt::const_child_range, then make a bunch of places use them instead of the individual iterator accessors. llvm-svn: 125450
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/StmtXML.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/StmtXML.cpp b/clang/lib/Frontend/StmtXML.cpp
index c2ffe4f2a74..c113cc18dc1 100644
--- a/clang/lib/Frontend/StmtXML.cpp
+++ b/clang/lib/Frontend/StmtXML.cpp
@@ -61,8 +61,7 @@ namespace {
Doc.PrintDecl(*DI);
}
} else {
- for (Stmt::child_iterator i = S->child_begin(), e = S->child_end();
- i != e; ++i)
+ for (Stmt::child_range i = S->children(); i; ++i)
DumpSubTree(*i);
}
Doc.toParent();
OpenPOWER on IntegriCloud