Lines Matching refs:SetterMethod
2182 ObjCMethodDecl *SetterMethod = nullptr; in AtomicPropertySetterGetterRules() local
2192 SetterMethod = Property->isClassProperty() ? in AtomicPropertySetterGetterRules()
2197 if (SetterMethod && SetterMethod->isSynthesizedAccessorStub()) in AtomicPropertySetterGetterRules()
2198 SetterMethod = nullptr; in AtomicPropertySetterGetterRules()
2205 if (SetterMethod) { in AtomicPropertySetterGetterRules()
2206 Diag(SetterMethod->getLocation(), in AtomicPropertySetterGetterRules()
2222 SetterMethod = PIDecl->getSetterMethodDecl(); in AtomicPropertySetterGetterRules()
2225 if (SetterMethod && SetterMethod->isSynthesizedAccessorStub()) in AtomicPropertySetterGetterRules()
2226 SetterMethod = nullptr; in AtomicPropertySetterGetterRules()
2227 if ((bool)GetterMethod ^ (bool)SetterMethod) { in AtomicPropertySetterGetterRules()
2230 : SetterMethod->getLocation()); in AtomicPropertySetterGetterRules()
2233 << (SetterMethod != nullptr); in AtomicPropertySetterGetterRules()
2379 ObjCMethodDecl *GetterMethod, *SetterMethod; in ProcessPropertyDecl() local
2399 SetterMethod = IsClassProperty ? in ProcessPropertyDecl()
2402 if (!SetterMethod) in ProcessPropertyDecl()
2405 SetterMethod = IsClassProperty ? CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2430 if (!property->isReadOnly() && !SetterMethod) { in ProcessPropertyDecl()
2446 if (!property->isReadOnly() && SetterMethod) { in ProcessPropertyDecl()
2447 if (Context.getCanonicalType(SetterMethod->getReturnType()) != in ProcessPropertyDecl()
2449 Diag(SetterMethod->getLocation(), diag::err_setter_type_void); in ProcessPropertyDecl()
2450 if (SetterMethod->param_size() != 1 || in ProcessPropertyDecl()
2452 (*SetterMethod->param_begin())->getType().getNonReferenceType(), in ProcessPropertyDecl()
2457 << SetterMethod->getSelector(); in ProcessPropertyDecl()
2458 Diag(SetterMethod->getLocation(), diag::note_declared_at); in ProcessPropertyDecl()
2531 if (!SetterMethod) { in ProcessPropertyDecl()
2538 SetterMethod = in ProcessPropertyDecl()
2570 ParmVarDecl *Argument = ParmVarDecl::Create(Context, SetterMethod, in ProcessPropertyDecl()
2577 SetterMethod->setMethodParams(Context, Argument, None); in ProcessPropertyDecl()
2579 AddPropertyAttrs(*this, SetterMethod, property); in ProcessPropertyDecl()
2582 SetterMethod->addAttr(ObjCDirectAttr::CreateImplicit(Context, Loc)); in ProcessPropertyDecl()
2584 CD->addDecl(SetterMethod); in ProcessPropertyDecl()
2586 SetterMethod->addAttr(SectionAttr::CreateImplicit( in ProcessPropertyDecl()
2592 CheckARCMethodDecl(SetterMethod); in ProcessPropertyDecl()
2596 SetterMethod->setPropertyAccessor(true); in ProcessPropertyDecl()
2598 SetterMethod->createImplicitParams(Context, in ProcessPropertyDecl()
2599 SetterMethod->getClassInterface()); in ProcessPropertyDecl()
2600 property->setSetterMethodDecl(SetterMethod); in ProcessPropertyDecl()
2617 if (SetterMethod) in ProcessPropertyDecl()
2618 AddInstanceMethodToGlobalPool(SetterMethod); in ProcessPropertyDecl()
2622 if (SetterMethod) in ProcessPropertyDecl()
2623 AddFactoryMethodToGlobalPool(SetterMethod); in ProcessPropertyDecl()
2635 if (SetterMethod) in ProcessPropertyDecl()
2636 CheckObjCMethodOverrides(SetterMethod, CurrentClass, Sema::RTC_Unknown); in ProcessPropertyDecl()