Lines Matching defs:ObjCMethod

2718 void Sema::CheckObjCMethodOverrides(ObjCMethodDecl *ObjCMethod,
2722 OverrideSearch overrides(*this, ObjCMethod);
2740 ObjCMethod->SetRelatedResultType();
2743 mergeObjCMethodDecls(ObjCMethod, overridden);
2745 if (ObjCMethod->isImplicit() && overridden->isImplicit())
2749 if (isa<ObjCInterfaceDecl>(ObjCMethod->getDeclContext()) ||
2750 isa<ObjCImplementationDecl>(ObjCMethod->getDeclContext()))
2751 CheckConflictingOverridingMethod(ObjCMethod, overridden,
2757 ObjCMethodDecl::param_iterator ParamI = ObjCMethod->param_begin(),
2758 E = ObjCMethod->param_end();
2777 ObjCMethod->setOverriding(hasOverriddenMethodsInBaseOrProtocol);
2822 ObjCMethodDecl* ObjCMethod =
2869 ParmVarDecl* Param = CheckParameter(ObjCMethod, StartLoc,
2905 Param->setDeclContext(ObjCMethod);
2910 ObjCMethod->setMethodParams(Context, Params, SelectorLocs);
2911 ObjCMethod->setObjCDeclQualifier(
2915 ProcessDeclAttributeList(TUScope, ObjCMethod, AttrList);
2922 ImpDecl->addInstanceMethod(ObjCMethod);
2925 ImpDecl->addClassMethod(ObjCMethod);
2930 IMD = IDecl->lookupMethod(ObjCMethod->getSelector(),
2931 ObjCMethod->isInstanceMethod());
2932 if (ObjCMethod->hasAttrs() &&
2933 containsInvalidMethodImplAttribute(IMD, ObjCMethod->getAttrs())) {
2938 << ObjCMethod->getDeclName();
2942 cast<DeclContext>(ClassDecl)->addDecl(ObjCMethod);
2947 Diag(ObjCMethod->getLocation(), diag::err_duplicate_method_decl)
2948 << ObjCMethod->getDeclName();
2967 = CheckRelatedResultTypeCompatibility(*this, ObjCMethod, CurrentClass);
2969 CheckObjCMethodOverrides(ObjCMethod, CurrentClass, RTC);
2973 ARCError = CheckARCMethodDecl(*this, ObjCMethod);
2977 !ObjCMethod->hasRelatedResultType() &&
2980 switch (ObjCMethod->getMethodFamily()) {
2993 InferRelatedResultType = ObjCMethod->isClassMethod();
3000 InferRelatedResultType = ObjCMethod->isInstanceMethod();
3005 ObjCMethod->SetRelatedResultType();
3008 ActOnDocumentableDecl(ObjCMethod);
3010 return ObjCMethod;