Lines Matching refs:getterMethod
1193 if (ObjCMethodDecl *getterMethod = property->getGetterMethodDecl()) {
1194 getterMethod->createImplicitParams(Context, IDecl);
1200 SynthesizedFunctionScope Scope(*this, getterMethod);
1201 ImplicitParamDecl *SelfDecl = getterMethod->getSelfDecl();
1213 getterMethod->getResultType(),
1225 !getterMethod->hasAttr<NSReturnsNotRetainedAttr>()) {
1226 Diag(getterMethod->getLocation(),
1231 switch (getterMethod->getMethodFamily()) {
1236 Diag(getterMethod->getLocation(), diag::err_arc_illegal_method_def)
1237 << 1 << getterMethod->getSelector();
1421 ObjCMethodDecl *GetterMethod,
1423 if (!GetterMethod)
1425 QualType GetterType = GetterMethod->getResultType().getNonReferenceType();
1439 << GetterMethod->getSelector() << GetterType;
1440 Diag(GetterMethod->getLocation(), diag::note_declared_at);
1454 << GetterMethod->getSelector();
1455 Diag(GetterMethod->getLocation(), diag::note_declared_at);
1752 ObjCMethodDecl *GetterMethod = 0;
1761 GetterMethod = IMPDecl->getInstanceMethod(Property->getGetterName());
1764 if (GetterMethod) {
1765 Diag(GetterMethod->getLocation(),
1787 GetterMethod = IMPDecl->getInstanceMethod(Property->getGetterName());
1791 if ((GetterMethod && !SetterMethod) || (!GetterMethod && SetterMethod)) {
1793 (GetterMethod ? GetterMethod->getLocation()
1796 << Property->getIdentifier() << (GetterMethod != 0)
1886 ObjCMethodDecl *GetterMethod, *SetterMethod;
1888 GetterMethod = CD->getInstanceMethod(property->getGetterName());
1890 DiagnosePropertyAccessorMismatch(property, GetterMethod,
1918 if (!GetterMethod) {
1926 GetterMethod = ObjCMethodDecl::Create(Context, Loc, Loc,
1935 CD->addDecl(GetterMethod);
1937 AddPropertyAttrs(*this, GetterMethod, property);
1942 GetterMethod->setLexicalDeclContext(lexicalDC);
1944 GetterMethod->addAttr(
1948 CheckARCMethodDecl(GetterMethod);
1952 GetterMethod->setPropertyAccessor(true);
1953 property->setGetterMethodDecl(GetterMethod);
2019 if (GetterMethod)
2020 AddInstanceMethodToGlobalPool(GetterMethod);
2031 if (GetterMethod)
2032 CheckObjCMethodOverrides(GetterMethod, CurrentClass, Sema::RTC_Unknown);