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()
1865 ObjCPropertyDecl *Prop) { in SuperClassImplementsProperty() argument
1868 if (Prop->getPropertyAttributes() & ObjCPropertyAttribute::kind_readonly) in SuperClassImplementsProperty()
1873 if (!SuperClassImplementsGetter && SDecl->getInstanceMethod(Prop->getGetterName())) in SuperClassImplementsProperty()
1876 if (!SuperClassImplementsSetter && SDecl->getInstanceMethod(Prop->getSetterName())) in SuperClassImplementsProperty()
1898 ObjCPropertyDecl *Prop = PropEntry.second; in DefaultSynthesizeProperties() local
1900 if (Prop->isInvalidDecl() || in DefaultSynthesizeProperties()
1901 Prop->isClassProperty() || in DefaultSynthesizeProperties()
1902 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional) in DefaultSynthesizeProperties()
1906 Prop->getIdentifier(), Prop->getQueryKind())) in DefaultSynthesizeProperties()
1908 ObjCMethodDecl *ImpMethod = IMPDecl->getInstanceMethod(Prop->getGetterName()); in DefaultSynthesizeProperties()
1910 if (Prop->getPropertyAttributes() & ObjCPropertyAttribute::kind_readonly) in DefaultSynthesizeProperties()
1912 ImpMethod = IMPDecl->getInstanceMethod(Prop->getSetterName()); in DefaultSynthesizeProperties()
1917 IMPDecl->FindPropertyImplIvarDecl(Prop->getIdentifier())) { in DefaultSynthesizeProperties()
1918 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property) in DefaultSynthesizeProperties()
1919 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1925 SuperPropMap[std::make_pair(Prop->getIdentifier(), in DefaultSynthesizeProperties()
1926 Prop->isClassProperty())]; in DefaultSynthesizeProperties()
1928 dyn_cast<ObjCProtocolDecl>(Prop->getDeclContext())) { in DefaultSynthesizeProperties()
1933 if (!SuperClassImplementsProperty(IDecl, Prop) && !PropInSuperClass) { in DefaultSynthesizeProperties()
1936 << Prop << Proto; in DefaultSynthesizeProperties()
1937 Diag(Prop->getLocation(), diag::note_property_declare); in DefaultSynthesizeProperties()
1939 (Twine("@synthesize ") + Prop->getName() + ";\n\n").str(); in DefaultSynthesizeProperties()
1947 if ((Prop->getPropertyAttributes() & in DefaultSynthesizeProperties()
1951 !IMPDecl->getInstanceMethod(Prop->getSetterName()) && in DefaultSynthesizeProperties()
1952 !IDecl->HasUserDeclaredSetterMethod(Prop)) { in DefaultSynthesizeProperties()
1953 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property) in DefaultSynthesizeProperties()
1954 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1957 Diag(Prop->getLocation(), diag::warn_autosynthesis_property_in_superclass) in DefaultSynthesizeProperties()
1958 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1971 /* property = */ Prop->getIdentifier(), in DefaultSynthesizeProperties()
1972 /* ivar = */ Prop->getDefaultSynthIvarName(Context), in DefaultSynthesizeProperties()
1973 Prop->getLocation(), Prop->getQueryKind())); in DefaultSynthesizeProperties()
1974 if (PIDecl && !Prop->isUnavailable()) { in DefaultSynthesizeProperties()
1975 Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis); in DefaultSynthesizeProperties()
1996 ObjCPropertyDecl *Prop, in DiagnoseUnimplementedAccessor() argument
2002 x->isClassMethod() == Prop->isClassProperty(); in DiagnoseUnimplementedAccessor()
2011 Prop->isClassProperty()))) { in DiagnoseUnimplementedAccessor()
2014 ? (Prop->isClassProperty() in DiagnoseUnimplementedAccessor()
2017 : (Prop->isClassProperty() in DiagnoseUnimplementedAccessor()
2020 S.Diag(IMPDecl->getLocation(), diag) << Prop->getDeclName() << Method; in DiagnoseUnimplementedAccessor()
2021 S.Diag(Prop->getLocation(), diag::note_property_declare); in DiagnoseUnimplementedAccessor()
2119 ObjCPropertyDecl *Prop = P->second; in DiagnoseUnimplementedProperties() local
2121 if (Prop->isInvalidDecl() || in DiagnoseUnimplementedProperties()
2122 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional || in DiagnoseUnimplementedProperties()
2123 PropImplMap.count(Prop) || in DiagnoseUnimplementedProperties()
2124 Prop->getAvailability() == AR_Unavailable) in DiagnoseUnimplementedProperties()
2129 PrimaryClass, Prop->getGetterName(), IMPDecl, CDecl, C, Prop, InsMap); in DiagnoseUnimplementedProperties()
2130 if (!Prop->isReadOnly()) in DiagnoseUnimplementedProperties()
2132 PrimaryClass, Prop->getSetterName(), in DiagnoseUnimplementedProperties()
2133 IMPDecl, CDecl, C, Prop, InsMap); in DiagnoseUnimplementedProperties()
2169 for (auto *Prop : IDecl->properties()) in AtomicPropertySetterGetterRules() local
2170 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop; in AtomicPropertySetterGetterRules()
2172 for (auto *Prop : Ext->properties()) in AtomicPropertySetterGetterRules() local
2173 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop; in AtomicPropertySetterGetterRules()