Lines Matching refs:Property

349   auto isImplicitlyReadonlyAtomic = [](ObjCPropertyDecl *Property) -> bool {  in checkAtomicPropertyMismatch()  argument
351 auto Attrs = Property->getPropertyAttributes(); in checkAtomicPropertyMismatch()
360 if (Property->getPropertyAttributesAsWritten() & in checkAtomicPropertyMismatch()
840 ObjCPropertyDecl *Property) { in SelectPropertyForSynthesisFromProtocols() argument
841 assert(isa<ObjCProtocolDecl>(Property->getDeclContext()) && in SelectPropertyForSynthesisFromProtocols()
847 PDecl->collectInheritedProtocolProperties(Property, ProtocolSet, in SelectPropertyForSynthesisFromProtocols()
854 PDecl->collectInheritedProtocolProperties(Property, ProtocolSet, in SelectPropertyForSynthesisFromProtocols()
862 return Property; in SelectPropertyForSynthesisFromProtocols()
864 ObjCPropertyDecl *OriginalProperty = Property; in SelectPropertyForSynthesisFromProtocols()
868 if (Property->isReadOnly() && !Prop.value()->isReadOnly()) { in SelectPropertyForSynthesisFromProtocols()
869 Property = Prop.value(); in SelectPropertyForSynthesisFromProtocols()
873 if (Property != OriginalProperty) { in SelectPropertyForSynthesisFromProtocols()
878 QualType RHSType = S.Context.getCanonicalType(Property->getType()); in SelectPropertyForSynthesisFromProtocols()
879 unsigned OriginalAttributes = Property->getPropertyAttributesAsWritten(); in SelectPropertyForSynthesisFromProtocols()
934 if (Property->getGetterName() != Prop->getGetterName()) { in SelectPropertyForSynthesisFromProtocols()
938 if (!Property->isReadOnly() && !Prop->isReadOnly() && in SelectPropertyForSynthesisFromProtocols()
939 Property->getSetterName() != Prop->getSetterName()) { in SelectPropertyForSynthesisFromProtocols()
956 return Property; in SelectPropertyForSynthesisFromProtocols()
966 auto Diag = S.Diag(Property->getLocation(), in SelectPropertyForSynthesisFromProtocols()
967 Property != OriginalProperty || HasIncompatibleAttributes in SelectPropertyForSynthesisFromProtocols()
973 Diag << Property->getType(); in SelectPropertyForSynthesisFromProtocols()
980 Diag << Property->getGetterName(); in SelectPropertyForSynthesisFromProtocols()
983 Diag << Property->getSetterName(); in SelectPropertyForSynthesisFromProtocols()
1010 return Property; in SelectPropertyForSynthesisFromProtocols()
1635 Sema::DiagnosePropertyMismatch(ObjCPropertyDecl *Property, in DiagnosePropertyMismatch() argument
1639 ObjCPropertyAttribute::Kind CAttr = Property->getPropertyAttributes(); in DiagnosePropertyMismatch()
1651 Diag(Property->getLocation(), diag::warn_readonly_property) in DiagnosePropertyMismatch()
1652 << Property->getDeclName() << inheritedName; in DiagnosePropertyMismatch()
1655 Diag(Property->getLocation(), diag::warn_property_attribute) in DiagnosePropertyMismatch()
1656 << Property->getDeclName() << "copy" << inheritedName; in DiagnosePropertyMismatch()
1665 Diag(Property->getLocation(), diag::warn_property_attribute) in DiagnosePropertyMismatch()
1666 << Property->getDeclName() << "retain (or strong)" << inheritedName; in DiagnosePropertyMismatch()
1673 checkAtomicPropertyMismatch(*this, SuperProperty, Property, false); in DiagnosePropertyMismatch()
1676 if (Property->getSetterName() != SuperProperty->getSetterName() && in DiagnosePropertyMismatch()
1679 Diag(Property->getLocation(), diag::warn_property_attribute) in DiagnosePropertyMismatch()
1680 << Property->getDeclName() << "setter" << inheritedName; in DiagnosePropertyMismatch()
1683 if (Property->getGetterName() != SuperProperty->getGetterName()) { in DiagnosePropertyMismatch()
1684 Diag(Property->getLocation(), diag::warn_property_attribute) in DiagnosePropertyMismatch()
1685 << Property->getDeclName() << "getter" << inheritedName; in DiagnosePropertyMismatch()
1692 Context.getCanonicalType(Property->getType()); in DiagnosePropertyMismatch()
1702 Diag(Property->getLocation(), diag::warn_property_types_are_incompatible) in DiagnosePropertyMismatch()
1703 << Property->getType() << SuperProperty->getType() << inheritedName; in DiagnosePropertyMismatch()
1847 for (const auto *Property : IFace->instance_properties()) { in IvarBacksCurrentMethodAccessor() local
1848 if ((Property->getGetterName() == IMD->getSelector() || in IvarBacksCurrentMethodAccessor()
1849 Property->getSetterName() == IMD->getSelector()) && in IvarBacksCurrentMethodAccessor()
1850 (Property->getPropertyIvarDecl() == IV)) in IvarBacksCurrentMethodAccessor()
1856 for (const auto *Property : Ext->instance_properties()) in IvarBacksCurrentMethodAccessor() local
1857 if ((Property->getGetterName() == IMD->getSelector() || in IvarBacksCurrentMethodAccessor()
1858 Property->getSetterName() == IMD->getSelector()) && in IvarBacksCurrentMethodAccessor()
1859 (Property->getPropertyIvarDecl() == IV)) in IvarBacksCurrentMethodAccessor()
2177 const ObjCPropertyDecl *Property = I->second; in AtomicPropertySetterGetterRules() local
2181 unsigned Attributes = Property->getPropertyAttributes(); in AtomicPropertySetterGetterRules()
2182 unsigned AttributesAsWritten = Property->getPropertyAttributesAsWritten(); in AtomicPropertySetterGetterRules()
2186 GetterMethod = Property->isClassProperty() ? in AtomicPropertySetterGetterRules()
2187 IMPDecl->getClassMethod(Property->getGetterName()) : in AtomicPropertySetterGetterRules()
2188 IMPDecl->getInstanceMethod(Property->getGetterName()); in AtomicPropertySetterGetterRules()
2189 SetterMethod = Property->isClassProperty() ? in AtomicPropertySetterGetterRules()
2190 IMPDecl->getClassMethod(Property->getSetterName()) : in AtomicPropertySetterGetterRules()
2191 IMPDecl->getInstanceMethod(Property->getSetterName()); in AtomicPropertySetterGetterRules()
2199 << Property->getIdentifier() << 0; in AtomicPropertySetterGetterRules()
2200 Diag(Property->getLocation(), diag::note_property_declare); in AtomicPropertySetterGetterRules()
2205 << Property->getIdentifier() << 1; in AtomicPropertySetterGetterRules()
2206 Diag(Property->getLocation(), diag::note_property_declare); in AtomicPropertySetterGetterRules()
2215 Property->getIdentifier(), Property->getQueryKind())) { in AtomicPropertySetterGetterRules()
2229 << Property->getIdentifier() << (GetterMethod != nullptr) in AtomicPropertySetterGetterRules()
2232 if (Property->getLParenLoc().isValid() && in AtomicPropertySetterGetterRules()
2236 getLocForEndOfToken(Property->getLParenLoc()); in AtomicPropertySetterGetterRules()
2239 Diag(Property->getLocation(), in AtomicPropertySetterGetterRules()
2242 } else if (Property->getLParenLoc().isInvalid()) { in AtomicPropertySetterGetterRules()
2245 Property->getTypeSourceInfo()->getTypeLoc().getBeginLoc(); in AtomicPropertySetterGetterRules()
2246 Diag(Property->getLocation(), in AtomicPropertySetterGetterRules()
2251 Diag(Property->getLocation(), diag::note_property_declare); in AtomicPropertySetterGetterRules()
2361 ObjCPropertyDecl *Property) { in AddPropertyAttrs() argument
2363 for (const auto *A : Property->attrs()) { in AddPropertyAttrs()