Lines Matching refs:SetterMethod

1906     ObjCMethodDecl *SetterMethod = nullptr;  in AtomicPropertySetterGetterRules()  local
1915 SetterMethod = IMPDecl->getInstanceMethod(Property->getSetterName()); in AtomicPropertySetterGetterRules()
1923 if (SetterMethod) { in AtomicPropertySetterGetterRules()
1924 Diag(SetterMethod->getLocation(), in AtomicPropertySetterGetterRules()
1941 SetterMethod = IMPDecl->getInstanceMethod(Property->getSetterName()); in AtomicPropertySetterGetterRules()
1943 if ((GetterMethod && !SetterMethod) || (!GetterMethod && SetterMethod)) { in AtomicPropertySetterGetterRules()
1946 : SetterMethod->getLocation()); in AtomicPropertySetterGetterRules()
1949 << (SetterMethod != nullptr); in AtomicPropertySetterGetterRules()
2084 ObjCMethodDecl *GetterMethod, *SetterMethod; in ProcessPropertyDecl() local
2098 SetterMethod = CD->getInstanceMethod(property->getSetterName()); in ProcessPropertyDecl()
2099 if (!SetterMethod) in ProcessPropertyDecl()
2102 SetterMethod = CatDecl->getClassInterface()-> in ProcessPropertyDecl()
2107 if (SetterMethod) { in ProcessPropertyDecl()
2111 Context.getCanonicalType(SetterMethod->getReturnType()) != in ProcessPropertyDecl()
2113 Diag(SetterMethod->getLocation(), diag::err_setter_type_void); in ProcessPropertyDecl()
2114 if (SetterMethod->param_size() != 1 || in ProcessPropertyDecl()
2116 (*SetterMethod->param_begin())->getType().getNonReferenceType(), in ProcessPropertyDecl()
2121 << SetterMethod->getSelector(); in ProcessPropertyDecl()
2122 Diag(SetterMethod->getLocation(), diag::note_declared_at); in ProcessPropertyDecl()
2188 if (!SetterMethod) { in ProcessPropertyDecl()
2194 SetterMethod = in ProcessPropertyDecl()
2222 ParmVarDecl *Argument = ParmVarDecl::Create(Context, SetterMethod, in ProcessPropertyDecl()
2229 SetterMethod->setMethodParams(Context, Argument, None); in ProcessPropertyDecl()
2231 AddPropertyAttrs(*this, SetterMethod, property); in ProcessPropertyDecl()
2233 CD->addDecl(SetterMethod); in ProcessPropertyDecl()
2235 SetterMethod->addAttr( in ProcessPropertyDecl()
2241 CheckARCMethodDecl(SetterMethod); in ProcessPropertyDecl()
2245 SetterMethod->setPropertyAccessor(true); in ProcessPropertyDecl()
2246 property->setSetterMethodDecl(SetterMethod); in ProcessPropertyDecl()
2262 if (SetterMethod) in ProcessPropertyDecl()
2263 AddInstanceMethodToGlobalPool(SetterMethod); in ProcessPropertyDecl()
2274 if (SetterMethod) in ProcessPropertyDecl()
2275 CheckObjCMethodOverrides(SetterMethod, CurrentClass, Sema::RTC_Unknown); in ProcessPropertyDecl()