diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 15:16:45 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 15:16:45 +0000 |
commit | 11716817d1254e8e61a467aae68134b08498a563 (patch) | |
tree | b22158f7c8f172ece55d8ebcd99be564474f782b /lib/Rewrite | |
parent | 90f0e7122a3be18f0c4995318b61e41b74dff416 (diff) |
[C++11] Replacing ObjCImplementationDecl iterators ivar_begin() and ivar_end() with iterator_range ivars(). Updating all of the usages of the iterators with range-based for loops.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite')
-rw-r--r-- | lib/Rewrite/Frontend/RewriteObjC.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Rewrite/Frontend/RewriteObjC.cpp b/lib/Rewrite/Frontend/RewriteObjC.cpp index 735d1021fe..e2bbc92baa 100644 --- a/lib/Rewrite/Frontend/RewriteObjC.cpp +++ b/lib/Rewrite/Frontend/RewriteObjC.cpp @@ -5384,10 +5384,8 @@ void RewriteObjCFragileABI::RewriteObjCClassMetaData(ObjCImplementationDecl *IDe ObjCInterfaceDecl::ivar_iterator IVI, IVE; SmallVector<ObjCIvarDecl *, 8> IVars; if (!IDecl->ivar_empty()) { - for (ObjCInterfaceDecl::ivar_iterator - IV = IDecl->ivar_begin(), IVEnd = IDecl->ivar_end(); - IV != IVEnd; ++IV) - IVars.push_back(*IV); + for (auto *IV : IDecl->ivars()) + IVars.push_back(IV); IVI = IDecl->ivar_begin(); IVE = IDecl->ivar_end(); } else { |