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/SemaLookup.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/SemaLookup.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index d98b7f85052..4edf80954b4 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -3133,12 +3133,9 @@ static void LookupVisibleDecls(DeclContext *Ctx, LookupResult &Result, // Traverse the contexts of Objective-C classes. if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Ctx)) { // Traverse categories. - for (ObjCInterfaceDecl::visible_categories_iterator - Cat = IFace->visible_categories_begin(), - CatEnd = IFace->visible_categories_end(); - Cat != CatEnd; ++Cat) { + for (auto *Cat : IFace->visible_categories()) { ShadowContextRAII Shadow(Visited); - LookupVisibleDecls(*Cat, Result, QualifiedNameLookup, false, + LookupVisibleDecls(Cat, Result, QualifiedNameLookup, false, Consumer, Visited); } |