diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-13 21:23:55 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-13 21:23:55 +0000 |
commit | 3fe486a332bc206f9415f9b54e4694115a69b0ab (patch) | |
tree | 1b321402c5a8c60b8aabf381723572a0b4775d75 /clang/lib/Sema/SemaDeclObjC.cpp | |
parent | 8a5c5a016cf07fa71dde21eb128256be7924f216 (diff) | |
download | bcm5719-llvm-3fe486a332bc206f9415f9b54e4694115a69b0ab.tar.gz bcm5719-llvm-3fe486a332bc206f9415f9b54e4694115a69b0ab.zip |
[C++11] Replacing ObjCInterfaceDecl iterators visible_categories_begin() and visible_categories_end() with iterator_range visible_categories(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203851
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index d337a329591..b2709c547e7 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -1883,12 +1883,9 @@ void Sema::MatchAllMethodDeclarations(const SelectorSet &InsMap, // i.e. when WarnCategoryMethodImpl is false, check declarations in class // extension; as well as those in categories. if (!WarnCategoryMethodImpl) { - for (ObjCInterfaceDecl::visible_categories_iterator - Cat = I->visible_categories_begin(), - CatEnd = I->visible_categories_end(); - Cat != CatEnd; ++Cat) { + for (auto *Cat : I->visible_categories()) { MatchAllMethodDeclarations(InsMap, ClsMap, InsMapSeen, ClsMapSeen, - IMPDecl, *Cat, IncompleteImpl, false, + IMPDecl, Cat, IncompleteImpl, false, WarnCategoryMethodImpl); } } else { |