Lines Matching refs:Prop
118 CheckPropertyAgainstProtocol(Sema &S, ObjCPropertyDecl *Prop,
126 DeclContext::lookup_result R = Proto->lookup(Prop->getDeclName());
129 S.DiagnosePropertyMismatch(Prop, ProtoProp, Proto->getIdentifier());
138 CheckPropertyAgainstProtocol(S, Prop, *P, Known);
757 ObjCPropertyDecl *Prop = I->second;
758 QualType LHSType = S.Context.getCanonicalType(Prop->getType());
769 S.Diag(Prop->getLocation(), diag::note_protocol_property_declare)
770 << Prop->getType();
1470 ObjCPropertyDecl *Prop = *P;
1471 PropMap[Prop->getIdentifier()] = Prop;
1483 ObjCPropertyDecl *Prop = *P;
1484 PropMap[Prop->getIdentifier()] = Prop;
1494 ObjCPropertyDecl *Prop = *P;
1495 ObjCPropertyDecl *PropertyFromSuper = SuperPropMap[Prop->getIdentifier()];
1499 PropertyFromSuper->getIdentifier() != Prop->getIdentifier()) {
1500 ObjCPropertyDecl *&PropEntry = PropMap[Prop->getIdentifier()];
1502 PropEntry = Prop;
1567 ObjCPropertyDecl *Prop = PropertyOrder[i];
1569 if (Prop->isInvalidDecl() ||
1570 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional)
1573 if (IMPDecl->FindPropertyImplDecl(Prop->getIdentifier()))
1575 if (IMPDecl->getInstanceMethod(Prop->getGetterName())) {
1576 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readonly)
1578 if (IMPDecl->getInstanceMethod(Prop->getSetterName()))
1582 if (SuperPropMap[Prop->getIdentifier()]) {
1583 ObjCPropertyDecl *PropInSuperClass = SuperPropMap[Prop->getIdentifier()];
1584 if ((Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readwrite) &&
1587 !IMPDecl->getInstanceMethod(Prop->getSetterName()) &&
1588 !IDecl->HasUserDeclaredSetterMethod(Prop)) {
1589 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property)
1590 << Prop->getIdentifier()->getName();
1596 IMPDecl->FindPropertyImplIvarDecl(Prop->getIdentifier())) {
1597 if (PID->getPropertyDecl() != Prop) {
1598 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property)
1599 << Prop->getIdentifier()->getName();
1605 if (isa<ObjCProtocolDecl>(Prop->getDeclContext())) {
1609 Diag(Prop->getLocation(), diag::note_property_declare);
1620 /* property = */ Prop->getIdentifier(),
1621 /* ivar = */ Prop->getDefaultSynthIvarName(Context),
1622 Prop->getLocation()));
1624 Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis);
1693 ObjCPropertyDecl *Prop = P->second;
1695 if (Prop->isInvalidDecl() ||
1696 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional ||
1697 PropImplMap.count(Prop) ||
1698 Prop->getAvailability() == AR_Unavailable)
1704 if (!InsMap.count(Prop->getGetterName()) &&
1706 !PrimaryClass->lookupPropertyAccessor(Prop->getGetterName(), C))) {
1711 << Prop->getDeclName() << Prop->getGetterName();
1712 Diag(Prop->getLocation(),
1724 if (!Prop->isReadOnly() && !InsMap.count(Prop->getSetterName()) &&
1726 !PrimaryClass->lookupPropertyAccessor(Prop->getSetterName(), C))) {
1731 << Prop->getDeclName() << Prop->getSetterName();
1732 Diag(Prop->getLocation(),