diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-13 20:55:22 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-13 20:55:22 +0000 |
commit | a9f49e394c8e25c1f6e0693e52a770125f01d7e1 (patch) | |
tree | b0f7235edce127c97920a3c67e678a67cae36834 /clang/lib/Sema/SemaCodeComplete.cpp | |
parent | e937888e1c4eeafba7eab0359e00f5d28da93ecd (diff) | |
download | bcm5719-llvm-a9f49e394c8e25c1f6e0693e52a770125f01d7e1.tar.gz bcm5719-llvm-a9f49e394c8e25c1f6e0693e52a770125f01d7e1.zip |
[C++11] Replacing ObjCInterfaceDecl iterators all_referenced_protocol_begin() and all_referenced_protocol_end() with iterator_range all_referenced_protocols(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203848
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 0c02e52e67b..87a2b4cf0eb 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -3504,10 +3504,8 @@ static void AddObjCProperties(ObjCContainerDecl *Container, } // Look through protocols. - for (ObjCInterfaceDecl::all_protocol_iterator - I = IFace->all_referenced_protocol_begin(), - E = IFace->all_referenced_protocol_end(); I != E; ++I) - AddObjCProperties(*I, AllowCategories, AllowNullaryMethods, CurContext, + for (auto *I : IFace->all_referenced_protocols()) + AddObjCProperties(I, AllowCategories, AllowNullaryMethods, CurContext, AddedProperties, Results); // Look in the superclass. |