Lines Matching refs:Prop
108 CheckPropertyAgainstProtocol(Sema &S, ObjCPropertyDecl *Prop, in CheckPropertyAgainstProtocol() argument
117 Prop->getIdentifier(), Prop->isInstanceProperty())) { in CheckPropertyAgainstProtocol()
118 S.ObjC().DiagnosePropertyMismatch(Prop, ProtoProp, Proto->getIdentifier(), in CheckPropertyAgainstProtocol()
125 CheckPropertyAgainstProtocol(S, Prop, P, Known); in CheckPropertyAgainstProtocol()
851 for (const auto &Prop : llvm::enumerate(Properties)) { in SelectPropertyForSynthesisFromProtocols() local
853 if (Property->isReadOnly() && !Prop.value()->isReadOnly()) { in SelectPropertyForSynthesisFromProtocols()
854 Property = Prop.value(); in SelectPropertyForSynthesisFromProtocols()
855 SelectedIndex = Prop.index(); in SelectPropertyForSynthesisFromProtocols()
875 const ObjCPropertyDecl *Prop; in SelectPropertyForSynthesisFromProtocols() member
880 for (ObjCPropertyDecl *Prop : Properties) { in SelectPropertyForSynthesisFromProtocols()
882 unsigned Attr = Prop->getPropertyAttributesAsWritten(); in SelectPropertyForSynthesisFromProtocols()
887 Mismatches.push_back({Prop, Kind, AttributeName}); in SelectPropertyForSynthesisFromProtocols()
919 if (Property->getGetterName() != Prop->getGetterName()) { in SelectPropertyForSynthesisFromProtocols()
920 Mismatches.push_back({Prop, DifferentGetter, ""}); in SelectPropertyForSynthesisFromProtocols()
923 if (!Property->isReadOnly() && !Prop->isReadOnly() && in SelectPropertyForSynthesisFromProtocols()
924 Property->getSetterName() != Prop->getSetterName()) { in SelectPropertyForSynthesisFromProtocols()
925 Mismatches.push_back({Prop, DifferentSetter, ""}); in SelectPropertyForSynthesisFromProtocols()
928 QualType LHSType = S.Context.getCanonicalType(Prop->getType()); in SelectPropertyForSynthesisFromProtocols()
934 Mismatches.push_back({Prop, IncompatibleType, ""}); in SelectPropertyForSynthesisFromProtocols()
974 S.Diag(Note.Prop->getLocation(), diag::note_protocol_property_declare) in SelectPropertyForSynthesisFromProtocols()
978 Diag << Note.Prop->getType(); in SelectPropertyForSynthesisFromProtocols()
985 Diag << Note.Prop->getGetterName(); in SelectPropertyForSynthesisFromProtocols()
988 Diag << Note.Prop->getSetterName(); in SelectPropertyForSynthesisFromProtocols()
999 static bool hasWrittenStorageAttribute(ObjCPropertyDecl *Prop, in hasWrittenStorageAttribute() argument
1001 if (Prop->getPropertyAttributesAsWritten() & OwnershipMask) return true; in hasWrittenStorageAttribute()
1008 if (Prop->isReadOnly()) return false; in hasWrittenStorageAttribute()
1011 auto Category = dyn_cast<ObjCCategoryDecl>(Prop->getDeclContext()); in hasWrittenStorageAttribute()
1016 for (auto *Found : OrigClass->lookup(Prop->getDeclName())) { in hasWrittenStorageAttribute()
1024 Prop->getIdentifier(), QueryKind)) in hasWrittenStorageAttribute()
1740 for (auto *Prop : IDecl->properties()) { in CollectImmediateProperties() local
1741 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1743 PropMap[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = in CollectImmediateProperties()
1744 Prop; in CollectImmediateProperties()
1760 for (auto *Prop : CATDecl->properties()) { in CollectImmediateProperties() local
1761 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1763 PropMap[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = in CollectImmediateProperties()
1764 Prop; in CollectImmediateProperties()
1774 for (auto *Prop : PDecl->properties()) { in CollectImmediateProperties() local
1775 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1778 SuperPropMap[std::make_pair(Prop->getIdentifier(), in CollectImmediateProperties()
1779 Prop->isClassProperty())]; in CollectImmediateProperties()
1783 PropertyFromSuper->getIdentifier() != Prop->getIdentifier()) { in CollectImmediateProperties()
1785 PropMap[std::make_pair(Prop->getIdentifier(), in CollectImmediateProperties()
1786 Prop->isClassProperty())]; in CollectImmediateProperties()
1788 PropEntry = Prop; in CollectImmediateProperties()
1844 ObjCPropertyDecl *Prop) { in SuperClassImplementsProperty() argument
1847 if (Prop->getPropertyAttributes() & ObjCPropertyAttribute::kind_readonly) in SuperClassImplementsProperty()
1852 if (!SuperClassImplementsGetter && SDecl->getInstanceMethod(Prop->getGetterName())) in SuperClassImplementsProperty()
1855 if (!SuperClassImplementsSetter && SDecl->getInstanceMethod(Prop->getSetterName())) in SuperClassImplementsProperty()
1878 ObjCPropertyDecl *Prop = PropEntry.second; in DefaultSynthesizeProperties() local
1880 if (Prop->isInvalidDecl() || in DefaultSynthesizeProperties()
1881 Prop->isClassProperty() || in DefaultSynthesizeProperties()
1882 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional) in DefaultSynthesizeProperties()
1886 Prop->getIdentifier(), Prop->getQueryKind())) in DefaultSynthesizeProperties()
1888 ObjCMethodDecl *ImpMethod = IMPDecl->getInstanceMethod(Prop->getGetterName()); in DefaultSynthesizeProperties()
1890 if (Prop->getPropertyAttributes() & ObjCPropertyAttribute::kind_readonly) in DefaultSynthesizeProperties()
1892 ImpMethod = IMPDecl->getInstanceMethod(Prop->getSetterName()); in DefaultSynthesizeProperties()
1897 IMPDecl->FindPropertyImplIvarDecl(Prop->getIdentifier())) { in DefaultSynthesizeProperties()
1898 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property) in DefaultSynthesizeProperties()
1899 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1905 SuperPropMap[std::make_pair(Prop->getIdentifier(), in DefaultSynthesizeProperties()
1906 Prop->isClassProperty())]; in DefaultSynthesizeProperties()
1908 dyn_cast<ObjCProtocolDecl>(Prop->getDeclContext())) { in DefaultSynthesizeProperties()
1913 if (!SuperClassImplementsProperty(IDecl, Prop) && !PropInSuperClass) { in DefaultSynthesizeProperties()
1916 << Prop << Proto; in DefaultSynthesizeProperties()
1917 Diag(Prop->getLocation(), diag::note_property_declare); in DefaultSynthesizeProperties()
1919 (Twine("@synthesize ") + Prop->getName() + ";\n\n").str(); in DefaultSynthesizeProperties()
1927 if ((Prop->getPropertyAttributes() & in DefaultSynthesizeProperties()
1931 !IMPDecl->getInstanceMethod(Prop->getSetterName()) && in DefaultSynthesizeProperties()
1932 !IDecl->HasUserDeclaredSetterMethod(Prop)) { in DefaultSynthesizeProperties()
1933 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property) in DefaultSynthesizeProperties()
1934 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1937 Diag(Prop->getLocation(), diag::warn_autosynthesis_property_in_superclass) in DefaultSynthesizeProperties()
1938 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1951 /* property = */ Prop->getIdentifier(), in DefaultSynthesizeProperties()
1952 /* ivar = */ Prop->getDefaultSynthIvarName(Context), in DefaultSynthesizeProperties()
1953 Prop->getLocation(), Prop->getQueryKind())); in DefaultSynthesizeProperties()
1954 if (PIDecl && !Prop->isUnavailable()) { in DefaultSynthesizeProperties()
1955 Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis); in DefaultSynthesizeProperties()
1977 ObjCPropertyDecl *Prop, in DiagnoseUnimplementedAccessor() argument
1983 x->isClassMethod() == Prop->isClassProperty(); in DiagnoseUnimplementedAccessor()
1992 Prop->isClassProperty()))) { in DiagnoseUnimplementedAccessor()
1995 ? (Prop->isClassProperty() in DiagnoseUnimplementedAccessor()
1998 : (Prop->isClassProperty() in DiagnoseUnimplementedAccessor()
2001 S.Diag(IMPDecl->getLocation(), diag) << Prop->getDeclName() << Method; in DiagnoseUnimplementedAccessor()
2002 S.Diag(Prop->getLocation(), diag::note_property_declare); in DiagnoseUnimplementedAccessor()
2100 ObjCPropertyDecl *Prop = P->second; in DiagnoseUnimplementedProperties() local
2102 if (Prop->isInvalidDecl() || in DiagnoseUnimplementedProperties()
2103 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional || in DiagnoseUnimplementedProperties()
2104 PropImplMap.count(Prop) || in DiagnoseUnimplementedProperties()
2105 Prop->getAvailability() == AR_Unavailable) in DiagnoseUnimplementedProperties()
2109 DiagnoseUnimplementedAccessor(SemaRef, PrimaryClass, Prop->getGetterName(), in DiagnoseUnimplementedProperties()
2110 IMPDecl, CDecl, C, Prop, InsMap); in DiagnoseUnimplementedProperties()
2111 if (!Prop->isReadOnly()) in DiagnoseUnimplementedProperties()
2113 Prop->getSetterName(), IMPDecl, CDecl, C, in DiagnoseUnimplementedProperties()
2114 Prop, InsMap); in DiagnoseUnimplementedProperties()
2150 for (auto *Prop : IDecl->properties()) in AtomicPropertySetterGetterRules() local
2151 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop; in AtomicPropertySetterGetterRules()
2153 for (auto *Prop : Ext->properties()) in AtomicPropertySetterGetterRules() local
2154 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop; in AtomicPropertySetterGetterRules()