Lines Matching full:prop
118 CheckPropertyAgainstProtocol(Sema &S, ObjCPropertyDecl *Prop,
126 DeclContext::lookup_result R = Proto->lookup(Prop->getDeclName());
129 S.DiagnosePropertyMismatch(Prop, ProtoProp, Proto->getIdentifier(), true);
136 CheckPropertyAgainstProtocol(S, Prop, P, Known);
774 ObjCPropertyDecl *Prop = I->second;
775 QualType LHSType = S.Context.getCanonicalType(Prop->getType());
786 S.Diag(Prop->getLocation(), diag::note_protocol_property_declare)
787 << Prop->getType();
1430 for (auto *Prop : IDecl->properties())
1431 PropMap[Prop->getIdentifier()] = Prop;
1440 for (auto *Prop : CATDecl->properties())
1441 PropMap[Prop->getIdentifier()] = Prop;
1449 for (auto *Prop : PDecl->properties()) {
1450 ObjCPropertyDecl *PropertyFromSuper = SuperPropMap[Prop->getIdentifier()];
1454 PropertyFromSuper->getIdentifier() != Prop->getIdentifier()) {
1455 ObjCPropertyDecl *&PropEntry = PropMap[Prop->getIdentifier()];
1457 PropEntry = Prop;
1505 ObjCPropertyDecl *Prop) {
1508 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readonly)
1513 if (!SuperClassImplementsGetter && SDecl->getInstanceMethod(Prop->getGetterName()))
1516 if (!SuperClassImplementsSetter && SDecl->getInstanceMethod(Prop->getSetterName()))
1539 ObjCPropertyDecl *Prop = PropertyOrder[i];
1541 if (Prop->isInvalidDecl() ||
1542 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional)
1545 if (IMPDecl->FindPropertyImplDecl(Prop->getIdentifier()))
1547 if (IMPDecl->getInstanceMethod(Prop->getGetterName())) {
1548 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readonly)
1550 if (IMPDecl->getInstanceMethod(Prop->getSetterName()))
1554 IMPDecl->FindPropertyImplIvarDecl(Prop->getIdentifier())) {
1555 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property)
1556 << Prop->getIdentifier();
1561 ObjCPropertyDecl *PropInSuperClass = SuperPropMap[Prop->getIdentifier()];
1563 dyn_cast<ObjCProtocolDecl>(Prop->getDeclContext())) {
1568 if (!SuperClassImplementsProperty(IDecl, Prop) && !PropInSuperClass) {
1571 << Prop << Proto;
1572 Diag(Prop->getLocation(), diag::note_property_declare);
1578 if ((Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readwrite) &&
1581 !IMPDecl->getInstanceMethod(Prop->getSetterName()) &&
1582 !IDecl->HasUserDeclaredSetterMethod(Prop)) {
1583 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property)
1584 << Prop->getIdentifier();
1588 Diag(Prop->getLocation(), diag::warn_autosynthesis_property_in_superclass)
1589 << Prop->getIdentifier();
1602 /* property = */ Prop->getIdentifier(),
1603 /* ivar = */ Prop->getDefaultSynthIvarName(Context),
1604 Prop->getLocation()));
1606 Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis);
1629 ObjCPropertyDecl *Prop,
1642 << Prop->getDeclName() << Method;
1643 S.Diag(Prop->getLocation(),
1738 ObjCPropertyDecl *Prop = P->second;
1740 if (Prop->isInvalidDecl() ||
1741 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional ||
1742 PropImplMap.count(Prop) ||
1743 Prop->getAvailability() == AR_Unavailable)
1748 PrimaryClass, Prop->getGetterName(), IMPDecl, CDecl, C, Prop, InsMap);
1749 if (!Prop->isReadOnly())
1751 PrimaryClass, Prop->getSetterName(),
1752 IMPDecl, CDecl, C, Prop, InsMap);