Lines Matching refs:Prop
107 CheckPropertyAgainstProtocol(Sema &S, ObjCPropertyDecl *Prop, in CheckPropertyAgainstProtocol() argument
116 Prop->getIdentifier(), Prop->isInstanceProperty())) { in CheckPropertyAgainstProtocol()
117 S.DiagnosePropertyMismatch(Prop, ProtoProp, Proto->getIdentifier(), true); in CheckPropertyAgainstProtocol()
123 CheckPropertyAgainstProtocol(S, Prop, P, Known); in CheckPropertyAgainstProtocol()
866 for (const auto &Prop : llvm::enumerate(Properties)) { in SelectPropertyForSynthesisFromProtocols() local
868 if (Property->isReadOnly() && !Prop.value()->isReadOnly()) { in SelectPropertyForSynthesisFromProtocols()
869 Property = Prop.value(); in SelectPropertyForSynthesisFromProtocols()
870 SelectedIndex = Prop.index(); in SelectPropertyForSynthesisFromProtocols()
890 const ObjCPropertyDecl *Prop; in SelectPropertyForSynthesisFromProtocols() member
895 for (ObjCPropertyDecl *Prop : Properties) { in SelectPropertyForSynthesisFromProtocols()
897 unsigned Attr = Prop->getPropertyAttributesAsWritten(); in SelectPropertyForSynthesisFromProtocols()
902 Mismatches.push_back({Prop, Kind, AttributeName}); in SelectPropertyForSynthesisFromProtocols()
934 if (Property->getGetterName() != Prop->getGetterName()) { in SelectPropertyForSynthesisFromProtocols()
935 Mismatches.push_back({Prop, DifferentGetter, ""}); in SelectPropertyForSynthesisFromProtocols()
938 if (!Property->isReadOnly() && !Prop->isReadOnly() && in SelectPropertyForSynthesisFromProtocols()
939 Property->getSetterName() != Prop->getSetterName()) { in SelectPropertyForSynthesisFromProtocols()
940 Mismatches.push_back({Prop, DifferentSetter, ""}); in SelectPropertyForSynthesisFromProtocols()
943 QualType LHSType = S.Context.getCanonicalType(Prop->getType()); in SelectPropertyForSynthesisFromProtocols()
949 Mismatches.push_back({Prop, IncompatibleType, ""}); in SelectPropertyForSynthesisFromProtocols()
989 S.Diag(Note.Prop->getLocation(), diag::note_protocol_property_declare) in SelectPropertyForSynthesisFromProtocols()
993 Diag << Note.Prop->getType(); in SelectPropertyForSynthesisFromProtocols()
1000 Diag << Note.Prop->getGetterName(); in SelectPropertyForSynthesisFromProtocols()
1003 Diag << Note.Prop->getSetterName(); in SelectPropertyForSynthesisFromProtocols()
1014 static bool hasWrittenStorageAttribute(ObjCPropertyDecl *Prop, in hasWrittenStorageAttribute() argument
1016 if (Prop->getPropertyAttributesAsWritten() & OwnershipMask) return true; in hasWrittenStorageAttribute()
1023 if (Prop->isReadOnly()) return false; in hasWrittenStorageAttribute()
1026 auto Category = dyn_cast<ObjCCategoryDecl>(Prop->getDeclContext()); in hasWrittenStorageAttribute()
1031 for (auto Found : OrigClass->lookup(Prop->getDeclName())) { in hasWrittenStorageAttribute()
1039 Prop->getIdentifier(), QueryKind)) in hasWrittenStorageAttribute()
1761 for (auto *Prop : IDecl->properties()) { in CollectImmediateProperties() local
1762 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1764 PropMap[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = in CollectImmediateProperties()
1765 Prop; in CollectImmediateProperties()
1781 for (auto *Prop : CATDecl->properties()) { in CollectImmediateProperties() local
1782 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1784 PropMap[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = in CollectImmediateProperties()
1785 Prop; in CollectImmediateProperties()
1795 for (auto *Prop : PDecl->properties()) { in CollectImmediateProperties() local
1796 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1799 SuperPropMap[std::make_pair(Prop->getIdentifier(), in CollectImmediateProperties()
1800 Prop->isClassProperty())]; in CollectImmediateProperties()
1804 PropertyFromSuper->getIdentifier() != Prop->getIdentifier()) { in CollectImmediateProperties()
1806 PropMap[std::make_pair(Prop->getIdentifier(), in CollectImmediateProperties()
1807 Prop->isClassProperty())]; in CollectImmediateProperties()
1809 PropEntry = Prop; in CollectImmediateProperties()
1866 ObjCPropertyDecl *Prop) { in SuperClassImplementsProperty() argument
1869 if (Prop->getPropertyAttributes() & ObjCPropertyAttribute::kind_readonly) in SuperClassImplementsProperty()
1874 if (!SuperClassImplementsGetter && SDecl->getInstanceMethod(Prop->getGetterName())) in SuperClassImplementsProperty()
1877 if (!SuperClassImplementsSetter && SDecl->getInstanceMethod(Prop->getSetterName())) in SuperClassImplementsProperty()
1900 ObjCPropertyDecl *Prop = PropertyOrder[i]; in DefaultSynthesizeProperties() local
1902 if (Prop->isInvalidDecl() || in DefaultSynthesizeProperties()
1903 Prop->isClassProperty() || in DefaultSynthesizeProperties()
1904 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional) in DefaultSynthesizeProperties()
1908 Prop->getIdentifier(), Prop->getQueryKind())) in DefaultSynthesizeProperties()
1910 ObjCMethodDecl *ImpMethod = IMPDecl->getInstanceMethod(Prop->getGetterName()); in DefaultSynthesizeProperties()
1912 if (Prop->getPropertyAttributes() & ObjCPropertyAttribute::kind_readonly) in DefaultSynthesizeProperties()
1914 ImpMethod = IMPDecl->getInstanceMethod(Prop->getSetterName()); in DefaultSynthesizeProperties()
1919 IMPDecl->FindPropertyImplIvarDecl(Prop->getIdentifier())) { in DefaultSynthesizeProperties()
1920 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property) in DefaultSynthesizeProperties()
1921 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1927 SuperPropMap[std::make_pair(Prop->getIdentifier(), in DefaultSynthesizeProperties()
1928 Prop->isClassProperty())]; in DefaultSynthesizeProperties()
1930 dyn_cast<ObjCProtocolDecl>(Prop->getDeclContext())) { in DefaultSynthesizeProperties()
1935 if (!SuperClassImplementsProperty(IDecl, Prop) && !PropInSuperClass) { in DefaultSynthesizeProperties()
1938 << Prop << Proto; in DefaultSynthesizeProperties()
1939 Diag(Prop->getLocation(), diag::note_property_declare); in DefaultSynthesizeProperties()
1941 (Twine("@synthesize ") + Prop->getName() + ";\n\n").str(); in DefaultSynthesizeProperties()
1949 if ((Prop->getPropertyAttributes() & in DefaultSynthesizeProperties()
1953 !IMPDecl->getInstanceMethod(Prop->getSetterName()) && in DefaultSynthesizeProperties()
1954 !IDecl->HasUserDeclaredSetterMethod(Prop)) { in DefaultSynthesizeProperties()
1955 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property) in DefaultSynthesizeProperties()
1956 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1959 Diag(Prop->getLocation(), diag::warn_autosynthesis_property_in_superclass) in DefaultSynthesizeProperties()
1960 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1973 /* property = */ Prop->getIdentifier(), in DefaultSynthesizeProperties()
1974 /* ivar = */ Prop->getDefaultSynthIvarName(Context), in DefaultSynthesizeProperties()
1975 Prop->getLocation(), Prop->getQueryKind())); in DefaultSynthesizeProperties()
1976 if (PIDecl && !Prop->isUnavailable()) { in DefaultSynthesizeProperties()
1977 Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis); in DefaultSynthesizeProperties()
1998 ObjCPropertyDecl *Prop, in DiagnoseUnimplementedAccessor() argument
2004 x->isClassMethod() == Prop->isClassProperty(); in DiagnoseUnimplementedAccessor()
2013 Prop->isClassProperty()))) { in DiagnoseUnimplementedAccessor()
2016 ? (Prop->isClassProperty() in DiagnoseUnimplementedAccessor()
2019 : (Prop->isClassProperty() in DiagnoseUnimplementedAccessor()
2022 S.Diag(IMPDecl->getLocation(), diag) << Prop->getDeclName() << Method; in DiagnoseUnimplementedAccessor()
2023 S.Diag(Prop->getLocation(), diag::note_property_declare); in DiagnoseUnimplementedAccessor()
2122 ObjCPropertyDecl *Prop = P->second; in DiagnoseUnimplementedProperties() local
2124 if (Prop->isInvalidDecl() || in DiagnoseUnimplementedProperties()
2125 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional || in DiagnoseUnimplementedProperties()
2126 PropImplMap.count(Prop) || in DiagnoseUnimplementedProperties()
2127 Prop->getAvailability() == AR_Unavailable) in DiagnoseUnimplementedProperties()
2132 PrimaryClass, Prop->getGetterName(), IMPDecl, CDecl, C, Prop, InsMap); in DiagnoseUnimplementedProperties()
2133 if (!Prop->isReadOnly()) in DiagnoseUnimplementedProperties()
2135 PrimaryClass, Prop->getSetterName(), in DiagnoseUnimplementedProperties()
2136 IMPDecl, CDecl, C, Prop, InsMap); in DiagnoseUnimplementedProperties()
2172 for (auto *Prop : IDecl->properties()) in AtomicPropertySetterGetterRules() local
2173 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop; in AtomicPropertySetterGetterRules()
2175 for (auto *Prop : Ext->properties()) in AtomicPropertySetterGetterRules() local
2176 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop; in AtomicPropertySetterGetterRules()