Lines Matching refs:ObjCMethodDecl
42 bool Sema::checkInitMethod(ObjCMethodDecl *method, in checkInitMethod()
133 << cast<ObjCMethodDecl>(NewD->getDeclContext()); in diagnoseNoescape()
136 void Sema::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, in CheckObjCMethodOverride()
137 const ObjCMethodDecl *Overridden) { in CheckObjCMethodOverride()
203 ObjCMethodDecl::param_const_iterator oi = Overridden->param_begin(), in CheckObjCMethodOverride()
205 for (ObjCMethodDecl::param_iterator ni = NewMethod->param_begin(), in CheckObjCMethodOverride()
225 bool Sema::CheckARCMethodDecl(ObjCMethodDecl *method) { in CheckARCMethodDecl()
292 if (isa<ObjCMethodDecl>(ND)) { in DiagnoseObjCImplementedDeprecations()
315 << (isa<ObjCMethodDecl>(ND) in DiagnoseObjCImplementedDeprecations()
319 if (isa<ObjCMethodDecl>(ND)) in DiagnoseObjCImplementedDeprecations()
330 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D); in AddAnyMethodToGlobalPool()
365 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D); in ActOnStartOfObjCMethodDef()
438 ObjCMethodDecl *IMD = in ActOnStartOfObjCMethodDef()
489 const ObjCMethodDecl *SuperMethod = in ActOnStartOfObjCMethodDef()
1754 llvm::DenseMap<Selector, const ObjCMethodDecl*> MethodMap; in DiagnoseClassExtensionDupMethods()
1761 const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()]; in DiagnoseClassExtensionDupMethods()
2216 ObjCMethodDecl *method, in WarnUndefinedMethod()
2319 ObjCMethodDecl *MethodImpl, in CheckMethodOverrideReturn()
2320 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn()
2403 ObjCMethodDecl *MethodImpl, in CheckMethodOverrideParam()
2404 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideParam()
2487 static bool checkMethodFamilyMismatch(Sema &S, ObjCMethodDecl *impl, in checkMethodFamilyMismatch()
2488 ObjCMethodDecl *decl) { in checkMethodFamilyMismatch()
2501 const ObjCMethodDecl *unmatched = impl; in checkMethodFamilyMismatch()
2557 void Sema::WarnConflictingTypedMethods(ObjCMethodDecl *ImpMethodDecl, in WarnConflictingTypedMethods()
2558 ObjCMethodDecl *MethodDecl, in WarnConflictingTypedMethods()
2568 for (ObjCMethodDecl::param_iterator IM = ImpMethodDecl->param_begin(), in WarnConflictingTypedMethods()
2583 void Sema::CheckConflictingOverridingMethod(ObjCMethodDecl *Method, in CheckConflictingOverridingMethod()
2584 ObjCMethodDecl *Overridden, in CheckConflictingOverridingMethod()
2591 for (ObjCMethodDecl::param_iterator IM = Method->param_begin(), in CheckConflictingOverridingMethod()
2608 void Sema::WarnExactTypedMethods(ObjCMethodDecl *ImpMethodDecl, in WarnExactTypedMethods()
2609 ObjCMethodDecl *MethodDecl, in WarnExactTypedMethods()
2614 if (MethodDecl->getImplementationControl() == ObjCMethodDecl::Optional) in WarnExactTypedMethods()
2625 for (ObjCMethodDecl::param_iterator IM = ImpMethodDecl->param_begin(), in WarnExactTypedMethods()
2752 if (method->getImplementationControl() != ObjCMethodDecl::Optional && in CheckProtocolMethodDefs()
2769 if (ObjCMethodDecl *MethodInClass = in CheckProtocolMethodDefs()
2785 if (method->getImplementationControl() != ObjCMethodDecl::Optional && in CheckProtocolMethodDefs()
2835 ObjCMethodDecl *ImpMethodDecl = in MatchAllMethodDeclarations()
2864 ObjCMethodDecl *ImpMethodDecl = in MatchAllMethodDeclarations()
3244 bool Sema::MatchTwoMethodDeclarations(const ObjCMethodDecl *left, in MatchTwoMethodDeclarations()
3245 const ObjCMethodDecl *right, in MatchTwoMethodDeclarations()
3265 ObjCMethodDecl::param_const_iterator in MatchTwoMethodDeclarations()
3283 static bool isMethodContextSameForKindofLookup(ObjCMethodDecl *Method, in isMethodContextSameForKindofLookup()
3284 ObjCMethodDecl *MethodInList) { in isMethodContextSameForKindofLookup()
3304 ObjCMethodDecl *Method) { in addMethodToGlobalList()
3361 ObjCMethodDecl *PrevObjCMethod = List->getMethod(); in addMethodToGlobalList()
3419 void Sema::AddMethodToGlobalPool(ObjCMethodDecl *Method, bool impl, in AddMethodToGlobalPool()
3444 static bool isAcceptableMethodMismatch(ObjCMethodDecl *chosen, in isAcceptableMethodMismatch()
3445 ObjCMethodDecl *other) { in isAcceptableMethodMismatch()
3462 static bool FilterMethodsByTypeBound(ObjCMethodDecl *Method, in FilterMethodsByTypeBound()
3497 Selector Sel, SmallVectorImpl<ObjCMethodDecl *> &Methods, in CollectMultipleMethodsInGlobalPool()
3536 Selector Sel, ObjCMethodDecl *BestMethod, SourceRange R, in AreMultipleMethodsInGlobalPool()
3537 bool receiverIdOrClass, SmallVectorImpl<ObjCMethodDecl *> &Methods) { in AreMultipleMethodsInGlobalPool()
3539 SmallVector<ObjCMethodDecl *, 4> FilteredMethods; in AreMultipleMethodsInGlobalPool()
3560 ObjCMethodDecl *Sema::LookupMethodInGlobalPool(Selector Sel, SourceRange R, in LookupMethodInGlobalPool()
3572 SmallVector<ObjCMethodDecl *, 4> Methods; in LookupMethodInGlobalPool()
3580 void Sema::DiagnoseMultipleMethodInGlobalPool(SmallVectorImpl<ObjCMethodDecl*> &Methods, in DiagnoseMultipleMethodInGlobalPool()
3634 ObjCMethodDecl *Sema::LookupImplementedMethodInGlobalPool(Selector Sel) { in LookupImplementedMethodInGlobalPool()
3658 SmallVectorImpl<const ObjCMethodDecl *> &BestMethod, in HelperSelectorsForTypoCorrection()
3659 StringRef Typo, const ObjCMethodDecl * Method) { in HelperSelectorsForTypoCorrection()
3689 const ObjCMethodDecl *
3693 SmallVector<const ObjCMethodDecl *, 8> Methods; in SelectorsForTypoCorrection()
3739 SmallVector<const ObjCMethodDecl *, 8> SelectedMethods; in SelectorsForTypoCorrection()
3996 llvm::DenseMap<Selector, const ObjCMethodDecl*> InsMap; in ActOnAtEnd()
3997 llvm::DenseMap<Selector, const ObjCMethodDecl*> ClsMap; in ActOnAtEnd()
4000 ObjCMethodDecl *Method = in ActOnAtEnd()
4001 cast_or_null<ObjCMethodDecl>(allMethods[i]); in ActOnAtEnd()
4006 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()]; in ActOnAtEnd()
4030 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()]; in ActOnAtEnd()
4095 if (ObjCMethodDecl *GetterMethod = in ActOnAtEnd()
4099 if (ObjCMethodDecl *SetterMethod in ActOnAtEnd()
4225 CheckRelatedResultTypeCompatibility(Sema &S, ObjCMethodDecl *Method, in CheckRelatedResultTypeCompatibility()
4265 const ObjCMethodDecl *Method;
4266 llvm::SmallSetVector<ObjCMethodDecl*, 4> Overridden;
4270 OverrideSearch(Sema &S, const ObjCMethodDecl *method) : Method(method) { in OverrideSearch()
4387 ObjCMethodDecl *meth = container->getMethod(Method->getSelector(), in search()
4408 void Sema::CheckObjCMethodDirectOverrides(ObjCMethodDecl *method, in CheckObjCMethodDirectOverrides()
4409 ObjCMethodDecl *overridden) { in CheckObjCMethodDirectOverrides()
4422 void Sema::CheckObjCMethodOverrides(ObjCMethodDecl *ObjCMethod, in CheckObjCMethodOverrides()
4435 for (ObjCMethodDecl *overridden : overrides) { in CheckObjCMethodOverrides()
4462 for (ObjCMethodDecl *SuperOverridden : overrides) { in CheckObjCMethodOverrides()
4496 ObjCMethodDecl::param_iterator ParamI = ObjCMethod->param_begin(), in CheckObjCMethodOverrides()
4498 ObjCMethodDecl::param_iterator PrevI = overridden->param_begin(), in CheckObjCMethodOverrides()
4562 ObjCMethodDecl *method, in mergeInterfaceMethodToImpl()
4563 ObjCMethodDecl *prevMethod) { in mergeInterfaceMethodToImpl()
4605 const ObjCMethodDecl *Method) { in checkObjCMethodX86VectorTypes()
4645 static void mergeObjCDirectMembers(Sema &S, Decl *CD, ObjCMethodDecl *Method) { in mergeObjCDirectMembers()
4654 ObjCMethodDecl *Method, in checkObjCDirectMethodClashes()
4660 auto diagClash = [&](const ObjCMethodDecl *IMD) { in checkObjCDirectMethodClashes()
4737 ObjCMethodDecl *ObjCMethod = ObjCMethodDecl::Create( in ActOnMethodDeclaration()
4742 MethodDeclKind == tok::objc_optional ? ObjCMethodDecl::Optional in ActOnMethodDeclaration()
4743 : ObjCMethodDecl::Required, in ActOnMethodDeclaration()
4822 const ObjCMethodDecl *PrevMethod = nullptr; in ActOnMethodDeclaration()
4860 const ObjCMethodDecl *CanonicalMD = ObjCMethod->getCanonicalDecl(); in ActOnMethodDeclaration()
5258 Sema::GetIvarBackingPropertyAccessor(const ObjCMethodDecl *Method, in GetIvarBackingPropertyAccessor()
5289 const ObjCMethodDecl *Method;
5294 UnusedBackingIvarChecker(Sema &S, const ObjCMethodDecl *Method, in UnusedBackingIvarChecker()