diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-17 15:55:30 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-17 15:55:30 +0000 |
commit | 1683f7baf655ea4c0b0454d8e290c8cc58dfbca4 (patch) | |
tree | 60ecb1fd488126806390af2cc157644f1db4269b /clang/lib/Sema/SemaDeclObjC.cpp | |
parent | b088fbee3faa396926fc2f676ea9793971ef5801 (diff) | |
download | bcm5719-llvm-1683f7baf655ea4c0b0454d8e290c8cc58dfbca4.tar.gz bcm5719-llvm-1683f7baf655ea4c0b0454d8e290c8cc58dfbca4.zip |
[C++11] Replacing ObjCObjectType iterators qual_begin() and qual_end() with iterator_range quals(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 204047
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index 3198b01949d..2bed6cac384 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -616,9 +616,8 @@ void Sema::ActOnTypedefedProtocols(SmallVectorImpl<Decl *> &ProtocolRefs, QualType T = TDecl->getUnderlyingType(); if (T->isObjCObjectType()) if (const ObjCObjectType *OPT = T->getAs<ObjCObjectType>()) - for (ObjCObjectType::qual_iterator I = OPT->qual_begin(), - E = OPT->qual_end(); I != E; ++I) - ProtocolRefs.push_back(*I); + for (auto *I : OPT->quals()) + ProtocolRefs.push_back(I); } } |