From d85eff49a3c0e2365b3457c762d4bdb72f82800f Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 14 Mar 2014 15:02:45 +0000 Subject: [C++11] Replacing ObjCCategoryDecl iterators propimpl_begin() and propimpl_end() with iterator_range property_impls(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203930 --- clang/lib/Analysis/BodyFarm.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'clang/lib/Analysis/BodyFarm.cpp') diff --git a/clang/lib/Analysis/BodyFarm.cpp b/clang/lib/Analysis/BodyFarm.cpp index c857a0ef493..039911e3e2a 100644 --- a/clang/lib/Analysis/BodyFarm.cpp +++ b/clang/lib/Analysis/BodyFarm.cpp @@ -404,10 +404,7 @@ static Stmt *createObjCPropertyGetter(ASTContext &Ctx, const ObjCImplementationDecl *ImplDecl = IVar->getContainingInterface()->getImplementation(); if (ImplDecl) { - typedef ObjCImplementationDecl::propimpl_iterator propimpl_iterator; - for (propimpl_iterator I = ImplDecl->propimpl_begin(), - E = ImplDecl->propimpl_end(); - I != E; ++I) { + for (const auto *I : ImplDecl->property_impls()) { if (I->getPropertyDecl() != Prop) continue; -- cgit v1.2.3