summaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExprObjC.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-17 15:55:30 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-17 15:55:30 +0000
commit314ff89bfe4d56b8aa72d1f6d1c4b7fe8728e618 (patch)
tree04ebe5988a371ab976a822084ce795483e1d6837 /lib/Sema/SemaExprObjC.cpp
parent976b91306259e68e9e52cea50c8b2f7f21ceff7a (diff)
downloadclang-314ff89bfe4d56b8aa72d1f6d1c4b7fe8728e618.tar.gz
clang-314ff89bfe4d56b8aa72d1f6d1c4b7fe8728e618.tar.bz2
clang-314ff89bfe4d56b8aa72d1f6d1c4b7fe8728e618.tar.xz
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprObjC.cpp')
-rw-r--r--lib/Sema/SemaExprObjC.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp
index 2e5c132a4d..8ca446a2f3 100644
--- a/lib/Sema/SemaExprObjC.cpp
+++ b/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;