Lines Matching refs:SetterMethod
2183 ObjCMethodDecl *SetterMethod = nullptr; in AtomicPropertySetterGetterRules() local
2193 SetterMethod = Property->isClassProperty() ? in AtomicPropertySetterGetterRules()
2198 if (SetterMethod && SetterMethod->isSynthesizedAccessorStub()) in AtomicPropertySetterGetterRules()
2199 SetterMethod = nullptr; in AtomicPropertySetterGetterRules()
2206 if (SetterMethod) { in AtomicPropertySetterGetterRules()
2207 Diag(SetterMethod->getLocation(), in AtomicPropertySetterGetterRules()
2223 SetterMethod = PIDecl->getSetterMethodDecl(); in AtomicPropertySetterGetterRules()
2226 if (SetterMethod && SetterMethod->isSynthesizedAccessorStub()) in AtomicPropertySetterGetterRules()
2227 SetterMethod = nullptr; in AtomicPropertySetterGetterRules()
2228 if ((bool)GetterMethod ^ (bool)SetterMethod) { in AtomicPropertySetterGetterRules()
2231 : SetterMethod->getLocation()); in AtomicPropertySetterGetterRules()
2234 << (SetterMethod != nullptr); in AtomicPropertySetterGetterRules()
2380 ObjCMethodDecl *GetterMethod, *SetterMethod; in ProcessPropertyDecl() local
2400 SetterMethod = IsClassProperty ? in ProcessPropertyDecl()
2403 if (!SetterMethod) in ProcessPropertyDecl()
2406 SetterMethod = IsClassProperty ? CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2431 if (!property->isReadOnly() && !SetterMethod) { in ProcessPropertyDecl()
2447 if (!property->isReadOnly() && SetterMethod) { in ProcessPropertyDecl()
2448 if (Context.getCanonicalType(SetterMethod->getReturnType()) != in ProcessPropertyDecl()
2450 Diag(SetterMethod->getLocation(), diag::err_setter_type_void); in ProcessPropertyDecl()
2451 if (SetterMethod->param_size() != 1 || in ProcessPropertyDecl()
2453 (*SetterMethod->param_begin())->getType().getNonReferenceType(), in ProcessPropertyDecl()
2458 << SetterMethod->getSelector(); in ProcessPropertyDecl()
2459 Diag(SetterMethod->getLocation(), diag::note_declared_at); in ProcessPropertyDecl()
2532 if (!SetterMethod) { in ProcessPropertyDecl()
2539 SetterMethod = in ProcessPropertyDecl()
2571 ParmVarDecl *Argument = ParmVarDecl::Create(Context, SetterMethod, in ProcessPropertyDecl()
2578 SetterMethod->setMethodParams(Context, Argument, None); in ProcessPropertyDecl()
2580 AddPropertyAttrs(*this, SetterMethod, property); in ProcessPropertyDecl()
2583 SetterMethod->addAttr(ObjCDirectAttr::CreateImplicit(Context, Loc)); in ProcessPropertyDecl()
2585 CD->addDecl(SetterMethod); in ProcessPropertyDecl()
2587 SetterMethod->addAttr(SectionAttr::CreateImplicit( in ProcessPropertyDecl()
2593 CheckARCMethodDecl(SetterMethod); in ProcessPropertyDecl()
2597 SetterMethod->setPropertyAccessor(true); in ProcessPropertyDecl()
2599 SetterMethod->createImplicitParams(Context, in ProcessPropertyDecl()
2600 SetterMethod->getClassInterface()); in ProcessPropertyDecl()
2601 property->setSetterMethodDecl(SetterMethod); in ProcessPropertyDecl()
2618 if (SetterMethod) in ProcessPropertyDecl()
2619 AddInstanceMethodToGlobalPool(SetterMethod); in ProcessPropertyDecl()
2623 if (SetterMethod) in ProcessPropertyDecl()
2624 AddFactoryMethodToGlobalPool(SetterMethod); in ProcessPropertyDecl()
2636 if (SetterMethod) in ProcessPropertyDecl()
2637 CheckObjCMethodOverrides(SetterMethod, CurrentClass, Sema::RTC_Unknown); in ProcessPropertyDecl()