Lines Matching refs:ObjCMethodDecl
45 bool SemaObjC::checkInitMethod(ObjCMethodDecl *method, in checkInitMethod()
138 << cast<ObjCMethodDecl>(NewD->getDeclContext()); in diagnoseNoescape()
141 void SemaObjC::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, in CheckObjCMethodOverride()
142 const ObjCMethodDecl *Overridden) { in CheckObjCMethodOverride()
209 ObjCMethodDecl::param_const_iterator oi = Overridden->param_begin(), in CheckObjCMethodOverride()
211 for (ObjCMethodDecl::param_iterator ni = NewMethod->param_begin(), in CheckObjCMethodOverride()
231 bool SemaObjC::CheckARCMethodDecl(ObjCMethodDecl *method) { in CheckARCMethodDecl()
299 if (isa<ObjCMethodDecl>(ND)) { in DiagnoseObjCImplementedDeprecations()
322 << (isa<ObjCMethodDecl>(ND) in DiagnoseObjCImplementedDeprecations()
326 if (isa<ObjCMethodDecl>(ND)) in DiagnoseObjCImplementedDeprecations()
337 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D); in AddAnyMethodToGlobalPool()
373 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D); in ActOnStartOfObjCMethodDef()
446 ObjCMethodDecl *IMD = in ActOnStartOfObjCMethodDef()
497 const ObjCMethodDecl *SuperMethod = in ActOnStartOfObjCMethodDef()
1767 llvm::DenseMap<Selector, const ObjCMethodDecl*> MethodMap; in DiagnoseClassExtensionDupMethods()
1774 const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()]; in DiagnoseClassExtensionDupMethods()
2237 static bool shouldWarnUndefinedMethod(const ObjCMethodDecl *M) { in shouldWarnUndefinedMethod()
2243 ObjCMethodDecl *method, bool &IncompleteImpl, in WarnUndefinedMethod()
2354 ObjCMethodDecl *MethodImpl, in CheckMethodOverrideReturn()
2355 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn()
2434 ObjCMethodDecl *MethodImpl, in CheckMethodOverrideParam()
2435 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideParam()
2516 static bool checkMethodFamilyMismatch(Sema &S, ObjCMethodDecl *impl, in checkMethodFamilyMismatch()
2517 ObjCMethodDecl *decl) { in checkMethodFamilyMismatch()
2530 const ObjCMethodDecl *unmatched = impl; in checkMethodFamilyMismatch()
2586 void SemaObjC::WarnConflictingTypedMethods(ObjCMethodDecl *ImpMethodDecl, in WarnConflictingTypedMethods()
2587 ObjCMethodDecl *MethodDecl, in WarnConflictingTypedMethods()
2596 for (ObjCMethodDecl::param_iterator IM = ImpMethodDecl->param_begin(), in WarnConflictingTypedMethods()
2611 void SemaObjC::CheckConflictingOverridingMethod(ObjCMethodDecl *Method, in CheckConflictingOverridingMethod()
2612 ObjCMethodDecl *Overridden, in CheckConflictingOverridingMethod()
2618 for (ObjCMethodDecl::param_iterator IM = Method->param_begin(), in CheckConflictingOverridingMethod()
2635 void SemaObjC::WarnExactTypedMethods(ObjCMethodDecl *ImpMethodDecl, in WarnExactTypedMethods()
2636 ObjCMethodDecl *MethodDecl, in WarnExactTypedMethods()
2654 for (ObjCMethodDecl::param_iterator IM = ImpMethodDecl->param_begin(), in WarnExactTypedMethods()
2792 if (ObjCMethodDecl *MethodInClass = IDecl->lookupMethod( in CheckProtocolMethodDefs()
2851 ObjCMethodDecl *ImpMethodDecl = in MatchAllMethodDeclarations()
2880 ObjCMethodDecl *ImpMethodDecl = in MatchAllMethodDeclarations()
3259 bool SemaObjC::MatchTwoMethodDeclarations(const ObjCMethodDecl *left, in MatchTwoMethodDeclarations()
3260 const ObjCMethodDecl *right, in MatchTwoMethodDeclarations()
3281 ObjCMethodDecl::param_const_iterator in MatchTwoMethodDeclarations()
3299 static bool isMethodContextSameForKindofLookup(ObjCMethodDecl *Method, in isMethodContextSameForKindofLookup()
3300 ObjCMethodDecl *MethodInList) { in isMethodContextSameForKindofLookup()
3320 ObjCMethodDecl *Method) { in addMethodToGlobalList()
3377 ObjCMethodDecl *PrevObjCMethod = List->getMethod(); in addMethodToGlobalList()
3435 void SemaObjC::AddMethodToGlobalPool(ObjCMethodDecl *Method, bool impl, in AddMethodToGlobalPool()
3462 static bool isAcceptableMethodMismatch(ObjCMethodDecl *chosen, in isAcceptableMethodMismatch()
3463 ObjCMethodDecl *other) { in isAcceptableMethodMismatch()
3480 static bool FilterMethodsByTypeBound(ObjCMethodDecl *Method, in FilterMethodsByTypeBound()
3515 Selector Sel, SmallVectorImpl<ObjCMethodDecl *> &Methods, in CollectMultipleMethodsInGlobalPool()
3553 Selector Sel, ObjCMethodDecl *BestMethod, SourceRange R, in AreMultipleMethodsInGlobalPool()
3554 bool receiverIdOrClass, SmallVectorImpl<ObjCMethodDecl *> &Methods) { in AreMultipleMethodsInGlobalPool()
3556 SmallVector<ObjCMethodDecl *, 4> FilteredMethods; in AreMultipleMethodsInGlobalPool()
3577 ObjCMethodDecl *SemaObjC::LookupMethodInGlobalPool(Selector Sel, SourceRange R, in LookupMethodInGlobalPool()
3589 SmallVector<ObjCMethodDecl *, 4> Methods; in LookupMethodInGlobalPool()
3598 SmallVectorImpl<ObjCMethodDecl *> &Methods, Selector Sel, SourceRange R, in DiagnoseMultipleMethodInGlobalPool()
3652 ObjCMethodDecl *SemaObjC::LookupImplementedMethodInGlobalPool(Selector Sel) { in LookupImplementedMethodInGlobalPool()
3676 SmallVectorImpl<const ObjCMethodDecl *> &BestMethod, in HelperSelectorsForTypoCorrection()
3677 StringRef Typo, const ObjCMethodDecl * Method) { in HelperSelectorsForTypoCorrection()
3708 const ObjCMethodDecl *
3711 SmallVector<const ObjCMethodDecl *, 8> Methods; in SelectorsForTypoCorrection()
3757 SmallVector<const ObjCMethodDecl *, 8> SelectedMethods; in SelectorsForTypoCorrection()
4016 llvm::DenseMap<Selector, const ObjCMethodDecl*> InsMap; in ActOnAtEnd()
4017 llvm::DenseMap<Selector, const ObjCMethodDecl*> ClsMap; in ActOnAtEnd()
4020 ObjCMethodDecl *Method = in ActOnAtEnd()
4021 cast_or_null<ObjCMethodDecl>(allMethods[i]); in ActOnAtEnd()
4026 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()]; in ActOnAtEnd()
4050 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()]; in ActOnAtEnd()
4116 if (ObjCMethodDecl *GetterMethod = in ActOnAtEnd()
4120 if (ObjCMethodDecl *SetterMethod in ActOnAtEnd()
4246 CheckRelatedResultTypeCompatibility(Sema &S, ObjCMethodDecl *Method, in CheckRelatedResultTypeCompatibility()
4286 const ObjCMethodDecl *Method;
4287 llvm::SmallSetVector<ObjCMethodDecl*, 4> Overridden;
4291 OverrideSearch(Sema &S, const ObjCMethodDecl *method) : Method(method) { in OverrideSearch()
4409 ObjCMethodDecl *meth = container->getMethod(Method->getSelector(), in search()
4430 void SemaObjC::CheckObjCMethodDirectOverrides(ObjCMethodDecl *method, in CheckObjCMethodDirectOverrides()
4431 ObjCMethodDecl *overridden) { in CheckObjCMethodDirectOverrides()
4444 void SemaObjC::CheckObjCMethodOverrides(ObjCMethodDecl *ObjCMethod, in CheckObjCMethodOverrides()
4450 auto IsMethodInCurrentClass = [CurrentClass](const ObjCMethodDecl *M) { in CheckObjCMethodOverrides()
4463 for (ObjCMethodDecl *overridden : overrides) { in CheckObjCMethodOverrides()
4489 for (ObjCMethodDecl *SuperOverridden : overrides) { in CheckObjCMethodOverrides()
4523 ObjCMethodDecl::param_iterator ParamI = ObjCMethod->param_begin(), in CheckObjCMethodOverrides()
4525 ObjCMethodDecl::param_iterator PrevI = overridden->param_begin(), in CheckObjCMethodOverrides()
4589 ObjCMethodDecl *method, in mergeInterfaceMethodToImpl()
4590 ObjCMethodDecl *prevMethod) { in mergeInterfaceMethodToImpl()
4632 const ObjCMethodDecl *Method) { in checkObjCMethodX86VectorTypes()
4672 static void mergeObjCDirectMembers(Sema &S, Decl *CD, ObjCMethodDecl *Method) { in mergeObjCDirectMembers()
4681 ObjCMethodDecl *Method, in checkObjCDirectMethodClashes()
4687 auto diagClash = [&](const ObjCMethodDecl *IMD) { in checkObjCDirectMethodClashes()
4765 ObjCMethodDecl *ObjCMethod = ObjCMethodDecl::Create( in ActOnMethodDeclaration()
4855 const ObjCMethodDecl *PrevMethod = nullptr; in ActOnMethodDeclaration()
4893 const ObjCMethodDecl *CanonicalMD = ObjCMethod->getCanonicalDecl(); in ActOnMethodDeclaration()
5296 SemaObjC::GetIvarBackingPropertyAccessor(const ObjCMethodDecl *Method, in GetIvarBackingPropertyAccessor()
5327 const ObjCMethodDecl *Method;
5332 UnusedBackingIvarChecker(Sema &S, const ObjCMethodDecl *Method, in UnusedBackingIvarChecker()