aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Analysis/AnalysisDeclContext.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-13 17:34:31 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-13 17:34:31 +0000
commit0ad78303decbdce1c35a7082de91ec6263f970be (patch)
tree9f559a314e9c58e237195753e22759e6389ce786 /clang/lib/Analysis/AnalysisDeclContext.cpp
parent08ef1233c694cefec755f31a67e50b9916290a18 (diff)
downloadllvm-0ad78303decbdce1c35a7082de91ec6263f970be.zip
llvm-0ad78303decbdce1c35a7082de91ec6263f970be.tar.gz
llvm-0ad78303decbdce1c35a7082de91ec6263f970be.tar.bz2
[C++11] Replacing CXXRecordDecl iterators init_begin() and init_end() with iterator_range inits(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203819
Diffstat (limited to 'clang/lib/Analysis/AnalysisDeclContext.cpp')
-rw-r--r--clang/lib/Analysis/AnalysisDeclContext.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Analysis/AnalysisDeclContext.cpp b/clang/lib/Analysis/AnalysisDeclContext.cpp
index baac6c1..1cc87d1 100644
--- a/clang/lib/Analysis/AnalysisDeclContext.cpp
+++ b/clang/lib/Analysis/AnalysisDeclContext.cpp
@@ -242,10 +242,8 @@ ParentMap &AnalysisDeclContext::getParentMap() {
if (!PM) {
PM.reset(new ParentMap(getBody()));
if (const CXXConstructorDecl *C = dyn_cast<CXXConstructorDecl>(getDecl())) {
- for (CXXConstructorDecl::init_const_iterator I = C->init_begin(),
- E = C->init_end();
- I != E; ++I) {
- PM->addStmt((*I)->getInit());
+ for (const auto *I : C->inits()) {
+ PM->addStmt(I->getInit());
}
}
if (builtCFG)