Lines Matching refs:Prop

110 CheckPropertyAgainstProtocol(Sema &S, ObjCPropertyDecl *Prop,  in CheckPropertyAgainstProtocol()  argument
118 DeclContext::lookup_result R = Proto->lookup(Prop->getDeclName()); in CheckPropertyAgainstProtocol()
121 S.DiagnosePropertyMismatch(Prop, ProtoProp, Proto->getIdentifier(), true); in CheckPropertyAgainstProtocol()
128 CheckPropertyAgainstProtocol(S, Prop, P, Known); in CheckPropertyAgainstProtocol()
862 for (const auto &Prop : llvm::enumerate(Properties)) { in SelectPropertyForSynthesisFromProtocols() local
864 if (Property->isReadOnly() && !Prop.value()->isReadOnly()) { in SelectPropertyForSynthesisFromProtocols()
865 Property = Prop.value(); in SelectPropertyForSynthesisFromProtocols()
866 SelectedIndex = Prop.index(); in SelectPropertyForSynthesisFromProtocols()
886 const ObjCPropertyDecl *Prop; in SelectPropertyForSynthesisFromProtocols() member
891 for (ObjCPropertyDecl *Prop : Properties) { in SelectPropertyForSynthesisFromProtocols()
893 unsigned Attr = Prop->getPropertyAttributesAsWritten(); in SelectPropertyForSynthesisFromProtocols()
898 Mismatches.push_back({Prop, Kind, AttributeName}); in SelectPropertyForSynthesisFromProtocols()
929 if (Property->getGetterName() != Prop->getGetterName()) { in SelectPropertyForSynthesisFromProtocols()
930 Mismatches.push_back({Prop, DifferentGetter, ""}); in SelectPropertyForSynthesisFromProtocols()
933 if (!Property->isReadOnly() && !Prop->isReadOnly() && in SelectPropertyForSynthesisFromProtocols()
934 Property->getSetterName() != Prop->getSetterName()) { in SelectPropertyForSynthesisFromProtocols()
935 Mismatches.push_back({Prop, DifferentSetter, ""}); in SelectPropertyForSynthesisFromProtocols()
938 QualType LHSType = S.Context.getCanonicalType(Prop->getType()); in SelectPropertyForSynthesisFromProtocols()
944 Mismatches.push_back({Prop, IncompatibleType, ""}); in SelectPropertyForSynthesisFromProtocols()
984 S.Diag(Note.Prop->getLocation(), diag::note_protocol_property_declare) in SelectPropertyForSynthesisFromProtocols()
988 Diag << Note.Prop->getType(); in SelectPropertyForSynthesisFromProtocols()
995 Diag << Note.Prop->getGetterName(); in SelectPropertyForSynthesisFromProtocols()
998 Diag << Note.Prop->getSetterName(); in SelectPropertyForSynthesisFromProtocols()
1009 static bool hasWrittenStorageAttribute(ObjCPropertyDecl *Prop, in hasWrittenStorageAttribute() argument
1011 if (Prop->getPropertyAttributesAsWritten() & OwnershipMask) return true; in hasWrittenStorageAttribute()
1018 if (Prop->isReadOnly()) return false; in hasWrittenStorageAttribute()
1021 auto Category = dyn_cast<ObjCCategoryDecl>(Prop->getDeclContext()); in hasWrittenStorageAttribute()
1026 for (auto Found : OrigClass->lookup(Prop->getDeclName())) { in hasWrittenStorageAttribute()
1034 Prop->getIdentifier(), QueryKind)) in hasWrittenStorageAttribute()
1707 for (auto *Prop : IDecl->properties()) { in CollectImmediateProperties() local
1708 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1710 PropMap[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = in CollectImmediateProperties()
1711 Prop; in CollectImmediateProperties()
1727 for (auto *Prop : CATDecl->properties()) { in CollectImmediateProperties() local
1728 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1730 PropMap[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = in CollectImmediateProperties()
1731 Prop; in CollectImmediateProperties()
1741 for (auto *Prop : PDecl->properties()) { in CollectImmediateProperties() local
1742 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1745 SuperPropMap[std::make_pair(Prop->getIdentifier(), in CollectImmediateProperties()
1746 Prop->isClassProperty())]; in CollectImmediateProperties()
1750 PropertyFromSuper->getIdentifier() != Prop->getIdentifier()) { in CollectImmediateProperties()
1752 PropMap[std::make_pair(Prop->getIdentifier(), in CollectImmediateProperties()
1753 Prop->isClassProperty())]; in CollectImmediateProperties()
1755 PropEntry = Prop; in CollectImmediateProperties()
1812 ObjCPropertyDecl *Prop) { in SuperClassImplementsProperty() argument
1815 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readonly) in SuperClassImplementsProperty()
1820 if (!SuperClassImplementsGetter && SDecl->getInstanceMethod(Prop->getGetterName())) in SuperClassImplementsProperty()
1823 if (!SuperClassImplementsSetter && SDecl->getInstanceMethod(Prop->getSetterName())) in SuperClassImplementsProperty()
1846 ObjCPropertyDecl *Prop = PropertyOrder[i]; in DefaultSynthesizeProperties() local
1848 if (Prop->isInvalidDecl() || in DefaultSynthesizeProperties()
1849 Prop->isClassProperty() || in DefaultSynthesizeProperties()
1850 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional) in DefaultSynthesizeProperties()
1854 Prop->getIdentifier(), Prop->getQueryKind())) in DefaultSynthesizeProperties()
1856 if (IMPDecl->getInstanceMethod(Prop->getGetterName())) { in DefaultSynthesizeProperties()
1857 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readonly) in DefaultSynthesizeProperties()
1859 if (IMPDecl->getInstanceMethod(Prop->getSetterName())) in DefaultSynthesizeProperties()
1863 IMPDecl->FindPropertyImplIvarDecl(Prop->getIdentifier())) { in DefaultSynthesizeProperties()
1864 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property) in DefaultSynthesizeProperties()
1865 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1871 SuperPropMap[std::make_pair(Prop->getIdentifier(), in DefaultSynthesizeProperties()
1872 Prop->isClassProperty())]; in DefaultSynthesizeProperties()
1874 dyn_cast<ObjCProtocolDecl>(Prop->getDeclContext())) { in DefaultSynthesizeProperties()
1879 if (!SuperClassImplementsProperty(IDecl, Prop) && !PropInSuperClass) { in DefaultSynthesizeProperties()
1882 << Prop << Proto; in DefaultSynthesizeProperties()
1883 Diag(Prop->getLocation(), diag::note_property_declare); in DefaultSynthesizeProperties()
1885 (Twine("@synthesize ") + Prop->getName() + ";\n\n").str(); in DefaultSynthesizeProperties()
1893 if ((Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readwrite) && in DefaultSynthesizeProperties()
1896 !IMPDecl->getInstanceMethod(Prop->getSetterName()) && in DefaultSynthesizeProperties()
1897 !IDecl->HasUserDeclaredSetterMethod(Prop)) { in DefaultSynthesizeProperties()
1898 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property) in DefaultSynthesizeProperties()
1899 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1903 Diag(Prop->getLocation(), diag::warn_autosynthesis_property_in_superclass) in DefaultSynthesizeProperties()
1904 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1917 /* property = */ Prop->getIdentifier(), in DefaultSynthesizeProperties()
1918 /* ivar = */ Prop->getDefaultSynthIvarName(Context), in DefaultSynthesizeProperties()
1919 Prop->getLocation(), Prop->getQueryKind())); in DefaultSynthesizeProperties()
1920 if (PIDecl && !Prop->isUnavailable()) { in DefaultSynthesizeProperties()
1921 Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis); in DefaultSynthesizeProperties()
1942 ObjCPropertyDecl *Prop, in DiagnoseUnimplementedAccessor() argument
1949 x->isClassMethod() == Prop->isClassProperty(); in DiagnoseUnimplementedAccessor()
1958 Prop->isClassProperty()))) { in DiagnoseUnimplementedAccessor()
1961 ? (Prop->isClassProperty() in DiagnoseUnimplementedAccessor()
1964 : (Prop->isClassProperty() in DiagnoseUnimplementedAccessor()
1967 S.Diag(IMPDecl->getLocation(), diag) << Prop->getDeclName() << Method; in DiagnoseUnimplementedAccessor()
1968 S.Diag(Prop->getLocation(), diag::note_property_declare); in DiagnoseUnimplementedAccessor()
2067 ObjCPropertyDecl *Prop = P->second; in DiagnoseUnimplementedProperties() local
2069 if (Prop->isInvalidDecl() || in DiagnoseUnimplementedProperties()
2070 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional || in DiagnoseUnimplementedProperties()
2071 PropImplMap.count(Prop) || in DiagnoseUnimplementedProperties()
2072 Prop->getAvailability() == AR_Unavailable) in DiagnoseUnimplementedProperties()
2077 PrimaryClass, Prop->getGetterName(), IMPDecl, CDecl, C, Prop, InsMap); in DiagnoseUnimplementedProperties()
2078 if (!Prop->isReadOnly()) in DiagnoseUnimplementedProperties()
2080 PrimaryClass, Prop->getSetterName(), in DiagnoseUnimplementedProperties()
2081 IMPDecl, CDecl, C, Prop, InsMap); in DiagnoseUnimplementedProperties()
2119 for (auto *Prop : IDecl->properties()) in AtomicPropertySetterGetterRules() local
2120 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop; in AtomicPropertySetterGetterRules()
2122 for (auto *Prop : Ext->properties()) in AtomicPropertySetterGetterRules() local
2123 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop; in AtomicPropertySetterGetterRules()