[C++11] Replacing ObjCObjectPointerType 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: 204048
This commit is contained in:
@@ -3604,10 +3604,8 @@ void Sema::CodeCompleteMemberReferenceExpr(Scope *S, Expr *Base,
|
||||
AddedProperties, Results);
|
||||
|
||||
// Add properties from the protocols in a qualified interface.
|
||||
for (ObjCObjectPointerType::qual_iterator I = ObjCPtr->qual_begin(),
|
||||
E = ObjCPtr->qual_end();
|
||||
I != E; ++I)
|
||||
AddObjCProperties(*I, true, /*AllowNullaryMethods=*/true, CurContext,
|
||||
for (auto *I : ObjCPtr->quals())
|
||||
AddObjCProperties(I, true, /*AllowNullaryMethods=*/true, CurContext,
|
||||
AddedProperties, Results);
|
||||
} else if ((IsArrow && BaseType->isObjCObjectPointerType()) ||
|
||||
(!IsArrow && BaseType->isObjCObjectType())) {
|
||||
@@ -5530,10 +5528,8 @@ void Sema::CodeCompleteObjCInstanceMessage(Scope *S, Expr *Receiver,
|
||||
else if (const ObjCObjectPointerType *QualID
|
||||
= ReceiverType->getAsObjCQualifiedIdType()) {
|
||||
// Search protocols for instance methods.
|
||||
for (ObjCObjectPointerType::qual_iterator I = QualID->qual_begin(),
|
||||
E = QualID->qual_end();
|
||||
I != E; ++I)
|
||||
AddObjCMethods(*I, true, MK_Any, SelIdents, CurContext,
|
||||
for (auto *I : QualID->quals())
|
||||
AddObjCMethods(I, true, MK_Any, SelIdents, CurContext,
|
||||
Selectors, AtArgumentExpression, Results);
|
||||
}
|
||||
// Handle messages to a pointer to interface type.
|
||||
@@ -5545,10 +5541,8 @@ void Sema::CodeCompleteObjCInstanceMessage(Scope *S, Expr *Receiver,
|
||||
Results);
|
||||
|
||||
// Search protocols for instance methods.
|
||||
for (ObjCObjectPointerType::qual_iterator I = IFacePtr->qual_begin(),
|
||||
E = IFacePtr->qual_end();
|
||||
I != E; ++I)
|
||||
AddObjCMethods(*I, true, MK_Any, SelIdents, CurContext,
|
||||
for (auto *I : IFacePtr->quals())
|
||||
AddObjCMethods(I, true, MK_Any, SelIdents, CurContext,
|
||||
Selectors, AtArgumentExpression, Results);
|
||||
}
|
||||
// Handle messages to "id".
|
||||
|
||||
Reference in New Issue
Block a user