summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-13 21:23:55 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-13 21:23:55 +0000
commit3fe486a332bc206f9415f9b54e4694115a69b0ab (patch)
tree1b321402c5a8c60b8aabf381723572a0b4775d75 /clang/lib/AST/ASTContext.cpp
parent8a5c5a016cf07fa71dde21eb128256be7924f216 (diff)
downloadbcm5719-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/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index cded2e106d5..64cdda1c18b 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -1822,12 +1822,8 @@ void ASTContext::CollectInheritedProtocols(const Decl *CDecl,
}
// Categories of this Interface.
- for (ObjCInterfaceDecl::visible_categories_iterator
- Cat = OI->visible_categories_begin(),
- CatEnd = OI->visible_categories_end();
- Cat != CatEnd; ++Cat) {
- CollectInheritedProtocols(*Cat, Protocols);
- }
+ for (const auto *Cat : OI->visible_categories())
+ CollectInheritedProtocols(Cat, Protocols);
if (ObjCInterfaceDecl *SD = OI->getSuperClass())
while (SD) {
OpenPOWER on IntegriCloud