diff options
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCodeComplete.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp index b3bc7b3..fe32382 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -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". |