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/SemaExprObjC.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/SemaExprObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExprObjC.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp index 2e5c132a4d6..8ca446a2f32 100644 --- a/clang/lib/Sema/SemaExprObjC.cpp +++ b/clang/lib/Sema/SemaExprObjC.cpp @@ -1464,9 +1464,8 @@ ObjCMethodDecl *Sema::LookupMethodInObjectType(Selector sel, QualType type, } // Check qualifiers. - for (ObjCObjectType::qual_iterator - i = objType->qual_begin(), e = objType->qual_end(); i != e; ++i) - if (ObjCMethodDecl *method = (*i)->lookupMethod(sel, isInstance)) + for (const auto *I : objType->quals()) + if (ObjCMethodDecl *method = I->lookupMethod(sel, isInstance)) return method; return 0; |