diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 12:55:57 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 12:55:57 +0000 |
commit | 19a417699fd985cb31eef88e47088d7436f149bf (patch) | |
tree | c5a2de1b591629ec6b2fda4880806712ef137079 /clang/lib/Sema/SemaCodeComplete.cpp | |
parent | f445399870e5d3e70be72db0e5ac6aa4d581d8ca (diff) | |
download | llvm-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.cpp | 6 |
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); } } |