• Home
  • Raw
  • Download

Lines Matching refs:Prop

110 CheckPropertyAgainstProtocol(Sema &S, ObjCPropertyDecl *Prop,  in CheckPropertyAgainstProtocol()  argument
118 DeclContext::lookup_result R = Proto->lookup(Prop->getDeclName()); in CheckPropertyAgainstProtocol()
121 S.DiagnosePropertyMismatch(Prop, ProtoProp, Proto->getIdentifier(), true); in CheckPropertyAgainstProtocol()
128 CheckPropertyAgainstProtocol(S, Prop, P, Known); in CheckPropertyAgainstProtocol()
837 ObjCPropertyDecl *Prop = I->second; in DiagnosePropertyMismatchDeclInProtocols() local
838 QualType LHSType = S.Context.getCanonicalType(Prop->getType()); in DiagnosePropertyMismatchDeclInProtocols()
849 S.Diag(Prop->getLocation(), diag::note_protocol_property_declare) in DiagnosePropertyMismatchDeclInProtocols()
850 << Prop->getType(); in DiagnosePropertyMismatchDeclInProtocols()
859 static bool hasWrittenStorageAttribute(ObjCPropertyDecl *Prop, in hasWrittenStorageAttribute() argument
861 if (Prop->getPropertyAttributesAsWritten() & OwnershipMask) return true; in hasWrittenStorageAttribute()
868 if (Prop->isReadOnly()) return false; in hasWrittenStorageAttribute()
871 auto Category = dyn_cast<ObjCCategoryDecl>(Prop->getDeclContext()); in hasWrittenStorageAttribute()
876 for (auto Found : OrigClass->lookup(Prop->getDeclName())) { in hasWrittenStorageAttribute()
884 Prop->getIdentifier(), QueryKind)) in hasWrittenStorageAttribute()
1542 for (auto *Prop : IDecl->properties()) { in CollectImmediateProperties() local
1543 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1545 PropMap[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = in CollectImmediateProperties()
1546 Prop; in CollectImmediateProperties()
1562 for (auto *Prop : CATDecl->properties()) { in CollectImmediateProperties() local
1563 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1565 PropMap[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = in CollectImmediateProperties()
1566 Prop; in CollectImmediateProperties()
1576 for (auto *Prop : PDecl->properties()) { in CollectImmediateProperties() local
1577 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1580 SuperPropMap[std::make_pair(Prop->getIdentifier(), in CollectImmediateProperties()
1581 Prop->isClassProperty())]; in CollectImmediateProperties()
1585 PropertyFromSuper->getIdentifier() != Prop->getIdentifier()) { in CollectImmediateProperties()
1587 PropMap[std::make_pair(Prop->getIdentifier(), in CollectImmediateProperties()
1588 Prop->isClassProperty())]; in CollectImmediateProperties()
1590 PropEntry = Prop; in CollectImmediateProperties()
1647 ObjCPropertyDecl *Prop) { in SuperClassImplementsProperty() argument
1650 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readonly) in SuperClassImplementsProperty()
1655 if (!SuperClassImplementsGetter && SDecl->getInstanceMethod(Prop->getGetterName())) in SuperClassImplementsProperty()
1658 if (!SuperClassImplementsSetter && SDecl->getInstanceMethod(Prop->getSetterName())) in SuperClassImplementsProperty()
1680 ObjCPropertyDecl *Prop = PropertyOrder[i]; in DefaultSynthesizeProperties() local
1682 if (Prop->isInvalidDecl() || in DefaultSynthesizeProperties()
1683 Prop->isClassProperty() || in DefaultSynthesizeProperties()
1684 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional) in DefaultSynthesizeProperties()
1688 Prop->getIdentifier(), Prop->getQueryKind())) in DefaultSynthesizeProperties()
1690 if (IMPDecl->getInstanceMethod(Prop->getGetterName())) { in DefaultSynthesizeProperties()
1691 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readonly) in DefaultSynthesizeProperties()
1693 if (IMPDecl->getInstanceMethod(Prop->getSetterName())) in DefaultSynthesizeProperties()
1697 IMPDecl->FindPropertyImplIvarDecl(Prop->getIdentifier())) { in DefaultSynthesizeProperties()
1698 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property) in DefaultSynthesizeProperties()
1699 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1705 SuperPropMap[std::make_pair(Prop->getIdentifier(), in DefaultSynthesizeProperties()
1706 Prop->isClassProperty())]; in DefaultSynthesizeProperties()
1708 dyn_cast<ObjCProtocolDecl>(Prop->getDeclContext())) { in DefaultSynthesizeProperties()
1713 if (!SuperClassImplementsProperty(IDecl, Prop) && !PropInSuperClass) { in DefaultSynthesizeProperties()
1716 << Prop << Proto; in DefaultSynthesizeProperties()
1717 Diag(Prop->getLocation(), diag::note_property_declare); in DefaultSynthesizeProperties()
1723 if ((Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readwrite) && in DefaultSynthesizeProperties()
1726 !IMPDecl->getInstanceMethod(Prop->getSetterName()) && in DefaultSynthesizeProperties()
1727 !IDecl->HasUserDeclaredSetterMethod(Prop)) { in DefaultSynthesizeProperties()
1728 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property) in DefaultSynthesizeProperties()
1729 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1733 Diag(Prop->getLocation(), diag::warn_autosynthesis_property_in_superclass) in DefaultSynthesizeProperties()
1734 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1747 /* property = */ Prop->getIdentifier(), in DefaultSynthesizeProperties()
1748 /* ivar = */ Prop->getDefaultSynthIvarName(Context), in DefaultSynthesizeProperties()
1749 Prop->getLocation(), Prop->getQueryKind())); in DefaultSynthesizeProperties()
1751 Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis); in DefaultSynthesizeProperties()
1771 ObjCPropertyDecl *Prop, in DiagnoseUnimplementedAccessor() argument
1778 x->isClassMethod() == Prop->isClassProperty(); in DiagnoseUnimplementedAccessor()
1787 Prop->isClassProperty()))) { in DiagnoseUnimplementedAccessor()
1790 ? (Prop->isClassProperty() in DiagnoseUnimplementedAccessor()
1793 : (Prop->isClassProperty() in DiagnoseUnimplementedAccessor()
1796 S.Diag(IMPDecl->getLocation(), diag) << Prop->getDeclName() << Method; in DiagnoseUnimplementedAccessor()
1797 S.Diag(Prop->getLocation(), diag::note_property_declare); in DiagnoseUnimplementedAccessor()
1896 ObjCPropertyDecl *Prop = P->second; in DiagnoseUnimplementedProperties() local
1898 if (Prop->isInvalidDecl() || in DiagnoseUnimplementedProperties()
1899 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional || in DiagnoseUnimplementedProperties()
1900 PropImplMap.count(Prop) || in DiagnoseUnimplementedProperties()
1901 Prop->getAvailability() == AR_Unavailable) in DiagnoseUnimplementedProperties()
1906 PrimaryClass, Prop->getGetterName(), IMPDecl, CDecl, C, Prop, InsMap); in DiagnoseUnimplementedProperties()
1907 if (!Prop->isReadOnly()) in DiagnoseUnimplementedProperties()
1909 PrimaryClass, Prop->getSetterName(), in DiagnoseUnimplementedProperties()
1910 IMPDecl, CDecl, C, Prop, InsMap); in DiagnoseUnimplementedProperties()
1948 for (auto *Prop : IDecl->properties()) in AtomicPropertySetterGetterRules() local
1949 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop; in AtomicPropertySetterGetterRules()
1951 for (auto *Prop : Ext->properties()) in AtomicPropertySetterGetterRules() local
1952 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop; in AtomicPropertySetterGetterRules()