• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching defs:Property

356   auto isImplicitlyReadonlyAtomic = [](ObjCPropertyDecl *Property) -> bool {
358 auto Attrs = Property->getPropertyAttributes();
367 if (Property->getPropertyAttributesAsWritten() &
583 // Property defaults to 'assign' if it is readwrite, unless this is ARC
847 ObjCPropertyDecl *Property) {
848 assert(isa<ObjCProtocolDecl>(Property->getDeclContext()) &&
854 PDecl->collectInheritedProtocolProperties(Property, ProtocolSet,
861 PDecl->collectInheritedProtocolProperties(Property, ProtocolSet,
869 return Property;
871 ObjCPropertyDecl *OriginalProperty = Property;
875 if (Property->isReadOnly() && !Prop.value()->isReadOnly()) {
876 Property = Prop.value();
880 if (Property != OriginalProperty) {
885 QualType RHSType = S.Context.getCanonicalType(Property->getType());
886 unsigned OriginalAttributes = Property->getPropertyAttributesAsWritten();
941 if (Property->getGetterName() != Prop->getGetterName()) {
945 if (!Property->isReadOnly() && !Prop->isReadOnly() &&
946 Property->getSetterName() != Prop->getSetterName()) {
963 return Property;
973 auto Diag = S.Diag(Property->getLocation(),
974 Property != OriginalProperty || HasIncompatibleAttributes
980 Diag << Property->getType();
987 Diag << Property->getGetterName();
990 Diag << Property->getSetterName();
1017 return Property;
1646 Sema::DiagnosePropertyMismatch(ObjCPropertyDecl *Property,
1650 ObjCPropertyAttribute::Kind CAttr = Property->getPropertyAttributes();
1662 Diag(Property->getLocation(), diag::warn_readonly_property)
1663 << Property->getDeclName() << inheritedName;
1666 Diag(Property->getLocation(), diag::warn_property_attribute)
1667 << Property->getDeclName() << "copy" << inheritedName;
1676 Diag(Property->getLocation(), diag::warn_property_attribute)
1677 << Property->getDeclName() << "retain (or strong)" << inheritedName;
1684 checkAtomicPropertyMismatch(*this, SuperProperty, Property, false);
1687 if (Property->getSetterName() != SuperProperty->getSetterName() &&
1690 Diag(Property->getLocation(), diag::warn_property_attribute)
1691 << Property->getDeclName() << "setter" << inheritedName;
1694 if (Property->getGetterName() != SuperProperty->getGetterName()) {
1695 Diag(Property->getLocation(), diag::warn_property_attribute)
1696 << Property->getDeclName() << "getter" << inheritedName;
1703 Context.getCanonicalType(Property->getType());
1713 Diag(Property->getLocation(), diag::warn_property_types_are_incompatible)
1714 << Property->getType() << SuperProperty->getType() << inheritedName;
1859 for (const auto *Property : IFace->instance_properties()) {
1860 if ((Property->getGetterName() == IMD->getSelector() ||
1861 Property->getSetterName() == IMD->getSelector()) &&
1862 (Property->getPropertyIvarDecl() == IV))
1868 for (const auto *Property : Ext->instance_properties())
1869 if ((Property->getGetterName() == IMD->getSelector() ||
1870 Property->getSetterName() == IMD->getSelector()) &&
1871 (Property->getPropertyIvarDecl() == IV))
1917 // Property may have been synthesized by user.
2191 const ObjCPropertyDecl *Property = I->second;
2195 unsigned Attributes = Property->getPropertyAttributes();
2196 unsigned AttributesAsWritten = Property->getPropertyAttributesAsWritten();
2200 GetterMethod = Property->isClassProperty() ?
2201 IMPDecl->getClassMethod(Property->getGetterName()) :
2202 IMPDecl->getInstanceMethod(Property->getGetterName());
2203 SetterMethod = Property->isClassProperty() ?
2204 IMPDecl->getClassMethod(Property->getSetterName()) :
2205 IMPDecl->getInstanceMethod(Property->getSetterName());
2213 << Property->getIdentifier() << 0;
2214 Diag(Property->getLocation(), diag::note_property_declare);
2219 << Property->getIdentifier() << 1;
2220 Diag(Property->getLocation(), diag::note_property_declare);
2229 Property->getIdentifier(), Property->getQueryKind())) {
2243 << Property->getIdentifier() << (GetterMethod != nullptr)
2246 if (Property->getLParenLoc().isValid() &&
2250 getLocForEndOfToken(Property->getLParenLoc());
2253 Diag(Property->getLocation(),
2256 } else if (Property->getLParenLoc().isInvalid()) {
2259 Property->getTypeSourceInfo()->getTypeLoc().getBeginLoc();
2260 Diag(Property->getLocation(),
2265 Diag(Property->getLocation(), diag::note_property_declare);
2375 ObjCPropertyDecl *Property) {
2377 for (const auto *A : Property->attrs()) {