summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CallGraph.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-07 19:56:05 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-07 19:56:05 +0000
commit629afaefe0cd1a583ccee54918b7b13f48bfe273 (patch)
tree9a236cdf36b4b96c8aad05ccdb63d8f40f9acd9c /clang/lib/Analysis/CallGraph.cpp
parentd72a5f103da45e5abe10497308fce5aeb992cdc2 (diff)
downloadbcm5719-llvm-629afaefe0cd1a583ccee54918b7b13f48bfe273.tar.gz
bcm5719-llvm-629afaefe0cd1a583ccee54918b7b13f48bfe273.zip
[C++11] Replacing DeclBase iterators decls_begin() and decls_end() with iterator_range decls(). The same is true for the noload versions of these APIs. Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203278
Diffstat (limited to 'clang/lib/Analysis/CallGraph.cpp')
-rw-r--r--clang/lib/Analysis/CallGraph.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Analysis/CallGraph.cpp b/clang/lib/Analysis/CallGraph.cpp
index 24705e534b5..649ba57bf58 100644
--- a/clang/lib/Analysis/CallGraph.cpp
+++ b/clang/lib/Analysis/CallGraph.cpp
@@ -95,9 +95,8 @@ void CallGraph::addNodesForBlocks(DeclContext *D) {
if (BlockDecl *BD = dyn_cast<BlockDecl>(D))
addNodeForDecl(BD, true);
- for (DeclContext::decl_iterator I = D->decls_begin(), E = D->decls_end();
- I!=E; ++I)
- if (DeclContext *DC = dyn_cast<DeclContext>(*I))
+ for (auto *I : D->decls())
+ if (auto *DC = dyn_cast<DeclContext>(I))
addNodesForBlocks(DC);
}
OpenPOWER on IntegriCloud