aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-14 12:55:57 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-14 12:55:57 +0000
commit19a417699fd985cb31eef88e47088d7436f149bf (patch)
treec5a2de1b591629ec6b2fda4880806712ef137079 /clang/lib/Sema/SemaCodeComplete.cpp
parentf445399870e5d3e70be72db0e5ac6aa4d581d8ca (diff)
downloadllvm-19a417699fd985cb31eef88e47088d7436f149bf.zip
llvm-19a417699fd985cb31eef88e47088d7436f149bf.tar.gz
llvm-19a417699fd985cb31eef88e47088d7436f149bf.tar.bz2
[C++11] Replacing ObjCCategoryDecl iterators protocol_begin() and protocol_end() with iterator_range protocols(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203922
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
-rw-r--r--clang/lib/Sema/SemaCodeComplete.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp
index b53c48a..b3bc7b3 100644
--- a/clang/lib/Sema/SemaCodeComplete.cpp
+++ b/clang/lib/Sema/SemaCodeComplete.cpp
@@ -3511,10 +3511,8 @@ static void AddObjCProperties(ObjCContainerDecl *Container,
} else if (const ObjCCategoryDecl *Category
= dyn_cast<ObjCCategoryDecl>(Container)) {
// Look through protocols.
- for (ObjCCategoryDecl::protocol_iterator P = Category->protocol_begin(),
- PEnd = Category->protocol_end();
- P != PEnd; ++P)
- AddObjCProperties(*P, AllowCategories, AllowNullaryMethods, CurContext,
+ for (auto *P : Category->protocols())
+ AddObjCProperties(P, AllowCategories, AllowNullaryMethods, CurContext,
AddedProperties, Results);
}
}