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()
1770 llvm::DenseMap<Selector, const ObjCMethodDecl*> MethodMap; in DiagnoseClassExtensionDupMethods()
1777 const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()]; in DiagnoseClassExtensionDupMethods()
2235 ObjCMethodDecl *method, bool &IncompleteImpl, in WarnUndefinedMethod()
2346 ObjCMethodDecl *MethodImpl, in CheckMethodOverrideReturn()
2347 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn()
2426 ObjCMethodDecl *MethodImpl, in CheckMethodOverrideParam()
2427 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideParam()
2508 static bool checkMethodFamilyMismatch(Sema &S, ObjCMethodDecl *impl, in checkMethodFamilyMismatch()
2509 ObjCMethodDecl *decl) { in checkMethodFamilyMismatch()
2522 const ObjCMethodDecl *unmatched = impl; in checkMethodFamilyMismatch()
2578 void Sema::WarnConflictingTypedMethods(ObjCMethodDecl *ImpMethodDecl, in WarnConflictingTypedMethods()
2579 ObjCMethodDecl *MethodDecl, in WarnConflictingTypedMethods()
2589 for (ObjCMethodDecl::param_iterator IM = ImpMethodDecl->param_begin(), in WarnConflictingTypedMethods()
2604 void Sema::CheckConflictingOverridingMethod(ObjCMethodDecl *Method, in CheckConflictingOverridingMethod()
2605 ObjCMethodDecl *Overridden, in CheckConflictingOverridingMethod()
2612 for (ObjCMethodDecl::param_iterator IM = Method->param_begin(), in CheckConflictingOverridingMethod()
2629 void Sema::WarnExactTypedMethods(ObjCMethodDecl *ImpMethodDecl, in WarnExactTypedMethods()
2630 ObjCMethodDecl *MethodDecl, in WarnExactTypedMethods()
2635 if (MethodDecl->getImplementationControl() == ObjCMethodDecl::Optional) in WarnExactTypedMethods()
2646 for (ObjCMethodDecl::param_iterator IM = ImpMethodDecl->param_begin(), in WarnExactTypedMethods()
2768 if (method->getImplementationControl() != ObjCMethodDecl::Optional && in CheckProtocolMethodDefs()
2785 if (ObjCMethodDecl *MethodInClass = in CheckProtocolMethodDefs()
2800 if (method->getImplementationControl() != ObjCMethodDecl::Optional && in CheckProtocolMethodDefs()
2850 ObjCMethodDecl *ImpMethodDecl = in MatchAllMethodDeclarations()
2879 ObjCMethodDecl *ImpMethodDecl = in MatchAllMethodDeclarations()
3258 bool Sema::MatchTwoMethodDeclarations(const ObjCMethodDecl *left, in MatchTwoMethodDeclarations()
3259 const ObjCMethodDecl *right, in MatchTwoMethodDeclarations()
3279 ObjCMethodDecl::param_const_iterator in MatchTwoMethodDeclarations()
3297 static bool isMethodContextSameForKindofLookup(ObjCMethodDecl *Method, in isMethodContextSameForKindofLookup()
3298 ObjCMethodDecl *MethodInList) { in isMethodContextSameForKindofLookup()
3318 ObjCMethodDecl *Method) { in addMethodToGlobalList()
3375 ObjCMethodDecl *PrevObjCMethod = List->getMethod(); in addMethodToGlobalList()
3433 void Sema::AddMethodToGlobalPool(ObjCMethodDecl *Method, bool impl, in AddMethodToGlobalPool()
3460 static bool isAcceptableMethodMismatch(ObjCMethodDecl *chosen, in isAcceptableMethodMismatch()
3461 ObjCMethodDecl *other) { in isAcceptableMethodMismatch()
3478 static bool FilterMethodsByTypeBound(ObjCMethodDecl *Method, in FilterMethodsByTypeBound()
3513 Selector Sel, SmallVectorImpl<ObjCMethodDecl *> &Methods, in CollectMultipleMethodsInGlobalPool()
3552 Selector Sel, ObjCMethodDecl *BestMethod, SourceRange R, in AreMultipleMethodsInGlobalPool()
3553 bool receiverIdOrClass, SmallVectorImpl<ObjCMethodDecl *> &Methods) { in AreMultipleMethodsInGlobalPool()
3555 SmallVector<ObjCMethodDecl *, 4> FilteredMethods; in AreMultipleMethodsInGlobalPool()
3576 ObjCMethodDecl *Sema::LookupMethodInGlobalPool(Selector Sel, SourceRange R, in LookupMethodInGlobalPool()
3588 SmallVector<ObjCMethodDecl *, 4> Methods; in LookupMethodInGlobalPool()
3596 void Sema::DiagnoseMultipleMethodInGlobalPool(SmallVectorImpl<ObjCMethodDecl*> &Methods, in DiagnoseMultipleMethodInGlobalPool()
3650 ObjCMethodDecl *Sema::LookupImplementedMethodInGlobalPool(Selector Sel) { in LookupImplementedMethodInGlobalPool()
3674 SmallVectorImpl<const ObjCMethodDecl *> &BestMethod, in HelperSelectorsForTypoCorrection()
3675 StringRef Typo, const ObjCMethodDecl * Method) { in HelperSelectorsForTypoCorrection()
3705 const ObjCMethodDecl *
3709 SmallVector<const ObjCMethodDecl *, 8> Methods; in SelectorsForTypoCorrection()
3755 SmallVector<const ObjCMethodDecl *, 8> SelectedMethods; in SelectorsForTypoCorrection()
4012 llvm::DenseMap<Selector, const ObjCMethodDecl*> InsMap; in ActOnAtEnd()
4013 llvm::DenseMap<Selector, const ObjCMethodDecl*> ClsMap; in ActOnAtEnd()
4016 ObjCMethodDecl *Method = in ActOnAtEnd()
4017 cast_or_null<ObjCMethodDecl>(allMethods[i]); in ActOnAtEnd()
4022 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()]; in ActOnAtEnd()
4046 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()]; in ActOnAtEnd()
4111 if (ObjCMethodDecl *GetterMethod = in ActOnAtEnd()
4115 if (ObjCMethodDecl *SetterMethod in ActOnAtEnd()
4241 CheckRelatedResultTypeCompatibility(Sema &S, ObjCMethodDecl *Method, in CheckRelatedResultTypeCompatibility()
4281 const ObjCMethodDecl *Method;
4282 llvm::SmallSetVector<ObjCMethodDecl*, 4> Overridden;
4286 OverrideSearch(Sema &S, const ObjCMethodDecl *method) : Method(method) { in OverrideSearch()
4403 ObjCMethodDecl *meth = container->getMethod(Method->getSelector(), in search()
4424 void Sema::CheckObjCMethodDirectOverrides(ObjCMethodDecl *method, in CheckObjCMethodDirectOverrides()
4425 ObjCMethodDecl *overridden) { in CheckObjCMethodDirectOverrides()
4438 void Sema::CheckObjCMethodOverrides(ObjCMethodDecl *ObjCMethod, in CheckObjCMethodOverrides()
4443 auto IsMethodInCurrentClass = [CurrentClass](const ObjCMethodDecl *M) { in CheckObjCMethodOverrides()
4456 for (ObjCMethodDecl *overridden : overrides) { in CheckObjCMethodOverrides()
4482 for (ObjCMethodDecl *SuperOverridden : overrides) { in CheckObjCMethodOverrides()
4516 ObjCMethodDecl::param_iterator ParamI = ObjCMethod->param_begin(), in CheckObjCMethodOverrides()
4518 ObjCMethodDecl::param_iterator PrevI = overridden->param_begin(), in CheckObjCMethodOverrides()
4582 ObjCMethodDecl *method, in mergeInterfaceMethodToImpl()
4583 ObjCMethodDecl *prevMethod) { in mergeInterfaceMethodToImpl()
4625 const ObjCMethodDecl *Method) { in checkObjCMethodX86VectorTypes()
4665 static void mergeObjCDirectMembers(Sema &S, Decl *CD, ObjCMethodDecl *Method) { in mergeObjCDirectMembers()
4674 ObjCMethodDecl *Method, in checkObjCDirectMethodClashes()
4680 auto diagClash = [&](const ObjCMethodDecl *IMD) { in checkObjCDirectMethodClashes()
4757 ObjCMethodDecl *ObjCMethod = ObjCMethodDecl::Create( in ActOnMethodDeclaration()
4762 MethodDeclKind == tok::objc_optional ? ObjCMethodDecl::Optional in ActOnMethodDeclaration()
4763 : ObjCMethodDecl::Required, in ActOnMethodDeclaration()
4842 const ObjCMethodDecl *PrevMethod = nullptr; in ActOnMethodDeclaration()
4880 const ObjCMethodDecl *CanonicalMD = ObjCMethod->getCanonicalDecl(); in ActOnMethodDeclaration()
5278 Sema::GetIvarBackingPropertyAccessor(const ObjCMethodDecl *Method, in GetIvarBackingPropertyAccessor()
5309 const ObjCMethodDecl *Method;
5314 UnusedBackingIvarChecker(Sema &S, const ObjCMethodDecl *Method, in UnusedBackingIvarChecker()