diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Index')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Index/ASTVisitor.h | 3 | ||||
-rw-r--r-- | contrib/llvm/tools/clang/lib/Index/CallGraph.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/contrib/llvm/tools/clang/lib/Index/ASTVisitor.h b/contrib/llvm/tools/clang/lib/Index/ASTVisitor.h index 943c720..0b8425b 100644 --- a/contrib/llvm/tools/clang/lib/Index/ASTVisitor.h +++ b/contrib/llvm/tools/clang/lib/Index/ASTVisitor.h @@ -108,8 +108,7 @@ public: } void VisitStmt(Stmt *Node) { - for (Stmt::child_iterator - I = Node->child_begin(), E = Node->child_end(); I != E; ++I) + for (Stmt::child_range I = Node->children(); I; ++I) if (*I) Visit(*I); } diff --git a/contrib/llvm/tools/clang/lib/Index/CallGraph.cpp b/contrib/llvm/tools/clang/lib/Index/CallGraph.cpp index dedcc0e..bf3f5a8 100644 --- a/contrib/llvm/tools/clang/lib/Index/CallGraph.cpp +++ b/contrib/llvm/tools/clang/lib/Index/CallGraph.cpp @@ -40,7 +40,7 @@ public: void VisitCallExpr(CallExpr *CE); void VisitChildren(Stmt *S) { - for (Stmt::child_iterator I=S->child_begin(), E=S->child_end(); I != E;++I) + for (Stmt::child_range I = S->children(); I; ++I) if (*I) static_cast<CGBuilder*>(this)->Visit(*I); } |