From f53d8dd37dd2f81fa95a00a9e2dbd574030e112e Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 13 Mar 2014 21:47:07 +0000 Subject: [C++11] Replacing ObjCInterfaceDecl iterators visible_extensions_begin() and visible_extensions_end() with iterator_range visible_extensions(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203855 --- clang/lib/ARCMigrate/TransProperties.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'clang/lib/ARCMigrate/TransProperties.cpp') diff --git a/clang/lib/ARCMigrate/TransProperties.cpp b/clang/lib/ARCMigrate/TransProperties.cpp index 4a3261246cf..82d820e6ebb 100644 --- a/clang/lib/ARCMigrate/TransProperties.cpp +++ b/clang/lib/ARCMigrate/TransProperties.cpp @@ -139,12 +139,8 @@ public: AtPropDeclsTy AtExtProps; // Look through extensions. - for (ObjCInterfaceDecl::visible_extensions_iterator - ext = iface->visible_extensions_begin(), - extEnd = iface->visible_extensions_end(); - ext != extEnd; ++ext) { - collectProperties(*ext, AtExtProps, &AtProps); - } + for (auto *Ext : iface->visible_extensions()) + collectProperties(Ext, AtExtProps, &AtProps); for (AtPropDeclsTy::iterator I = AtExtProps.begin(), E = AtExtProps.end(); I != E; ++I) { -- cgit v1.2.3