• Home
  • Raw
  • Download

Lines Matching refs:Prop

107 CheckPropertyAgainstProtocol(Sema &S, ObjCPropertyDecl *Prop,  in CheckPropertyAgainstProtocol()  argument
115 DeclContext::lookup_result R = Proto->lookup(Prop->getDeclName()); in CheckPropertyAgainstProtocol()
118 S.DiagnosePropertyMismatch(Prop, ProtoProp, Proto->getIdentifier(), true); in CheckPropertyAgainstProtocol()
125 CheckPropertyAgainstProtocol(S, Prop, P, Known); in CheckPropertyAgainstProtocol()
873 for (const auto &Prop : llvm::enumerate(Properties)) { in SelectPropertyForSynthesisFromProtocols() local
875 if (Property->isReadOnly() && !Prop.value()->isReadOnly()) { in SelectPropertyForSynthesisFromProtocols()
876 Property = Prop.value(); in SelectPropertyForSynthesisFromProtocols()
877 SelectedIndex = Prop.index(); in SelectPropertyForSynthesisFromProtocols()
897 const ObjCPropertyDecl *Prop; in SelectPropertyForSynthesisFromProtocols() member
902 for (ObjCPropertyDecl *Prop : Properties) { in SelectPropertyForSynthesisFromProtocols()
904 unsigned Attr = Prop->getPropertyAttributesAsWritten(); in SelectPropertyForSynthesisFromProtocols()
909 Mismatches.push_back({Prop, Kind, AttributeName}); in SelectPropertyForSynthesisFromProtocols()
941 if (Property->getGetterName() != Prop->getGetterName()) { in SelectPropertyForSynthesisFromProtocols()
942 Mismatches.push_back({Prop, DifferentGetter, ""}); in SelectPropertyForSynthesisFromProtocols()
945 if (!Property->isReadOnly() && !Prop->isReadOnly() && in SelectPropertyForSynthesisFromProtocols()
946 Property->getSetterName() != Prop->getSetterName()) { in SelectPropertyForSynthesisFromProtocols()
947 Mismatches.push_back({Prop, DifferentSetter, ""}); in SelectPropertyForSynthesisFromProtocols()
950 QualType LHSType = S.Context.getCanonicalType(Prop->getType()); in SelectPropertyForSynthesisFromProtocols()
956 Mismatches.push_back({Prop, IncompatibleType, ""}); in SelectPropertyForSynthesisFromProtocols()
996 S.Diag(Note.Prop->getLocation(), diag::note_protocol_property_declare) in SelectPropertyForSynthesisFromProtocols()
1000 Diag << Note.Prop->getType(); in SelectPropertyForSynthesisFromProtocols()
1007 Diag << Note.Prop->getGetterName(); in SelectPropertyForSynthesisFromProtocols()
1010 Diag << Note.Prop->getSetterName(); in SelectPropertyForSynthesisFromProtocols()
1021 static bool hasWrittenStorageAttribute(ObjCPropertyDecl *Prop, in hasWrittenStorageAttribute() argument
1023 if (Prop->getPropertyAttributesAsWritten() & OwnershipMask) return true; in hasWrittenStorageAttribute()
1030 if (Prop->isReadOnly()) return false; in hasWrittenStorageAttribute()
1033 auto Category = dyn_cast<ObjCCategoryDecl>(Prop->getDeclContext()); in hasWrittenStorageAttribute()
1038 for (auto Found : OrigClass->lookup(Prop->getDeclName())) { in hasWrittenStorageAttribute()
1046 Prop->getIdentifier(), QueryKind)) in hasWrittenStorageAttribute()
1770 for (auto *Prop : IDecl->properties()) { in CollectImmediateProperties() local
1771 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1773 PropMap[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = in CollectImmediateProperties()
1774 Prop; in CollectImmediateProperties()
1790 for (auto *Prop : CATDecl->properties()) { in CollectImmediateProperties() local
1791 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1793 PropMap[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = in CollectImmediateProperties()
1794 Prop; in CollectImmediateProperties()
1804 for (auto *Prop : PDecl->properties()) { in CollectImmediateProperties() local
1805 if (CollectClassPropsOnly && !Prop->isClassProperty()) in CollectImmediateProperties()
1808 SuperPropMap[std::make_pair(Prop->getIdentifier(), in CollectImmediateProperties()
1809 Prop->isClassProperty())]; in CollectImmediateProperties()
1813 PropertyFromSuper->getIdentifier() != Prop->getIdentifier()) { in CollectImmediateProperties()
1815 PropMap[std::make_pair(Prop->getIdentifier(), in CollectImmediateProperties()
1816 Prop->isClassProperty())]; in CollectImmediateProperties()
1818 PropEntry = Prop; in CollectImmediateProperties()
1875 ObjCPropertyDecl *Prop) { in SuperClassImplementsProperty() argument
1878 if (Prop->getPropertyAttributes() & ObjCPropertyAttribute::kind_readonly) in SuperClassImplementsProperty()
1883 if (!SuperClassImplementsGetter && SDecl->getInstanceMethod(Prop->getGetterName())) in SuperClassImplementsProperty()
1886 if (!SuperClassImplementsSetter && SDecl->getInstanceMethod(Prop->getSetterName())) in SuperClassImplementsProperty()
1909 ObjCPropertyDecl *Prop = PropertyOrder[i]; in DefaultSynthesizeProperties() local
1911 if (Prop->isInvalidDecl() || in DefaultSynthesizeProperties()
1912 Prop->isClassProperty() || in DefaultSynthesizeProperties()
1913 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional) in DefaultSynthesizeProperties()
1917 Prop->getIdentifier(), Prop->getQueryKind())) in DefaultSynthesizeProperties()
1919 ObjCMethodDecl *ImpMethod = IMPDecl->getInstanceMethod(Prop->getGetterName()); in DefaultSynthesizeProperties()
1921 if (Prop->getPropertyAttributes() & ObjCPropertyAttribute::kind_readonly) in DefaultSynthesizeProperties()
1923 ImpMethod = IMPDecl->getInstanceMethod(Prop->getSetterName()); in DefaultSynthesizeProperties()
1928 IMPDecl->FindPropertyImplIvarDecl(Prop->getIdentifier())) { in DefaultSynthesizeProperties()
1929 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property) in DefaultSynthesizeProperties()
1930 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1936 SuperPropMap[std::make_pair(Prop->getIdentifier(), in DefaultSynthesizeProperties()
1937 Prop->isClassProperty())]; in DefaultSynthesizeProperties()
1939 dyn_cast<ObjCProtocolDecl>(Prop->getDeclContext())) { in DefaultSynthesizeProperties()
1944 if (!SuperClassImplementsProperty(IDecl, Prop) && !PropInSuperClass) { in DefaultSynthesizeProperties()
1947 << Prop << Proto; in DefaultSynthesizeProperties()
1948 Diag(Prop->getLocation(), diag::note_property_declare); in DefaultSynthesizeProperties()
1950 (Twine("@synthesize ") + Prop->getName() + ";\n\n").str(); in DefaultSynthesizeProperties()
1958 if ((Prop->getPropertyAttributes() & in DefaultSynthesizeProperties()
1962 !IMPDecl->getInstanceMethod(Prop->getSetterName()) && in DefaultSynthesizeProperties()
1963 !IDecl->HasUserDeclaredSetterMethod(Prop)) { in DefaultSynthesizeProperties()
1964 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property) in DefaultSynthesizeProperties()
1965 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1968 Diag(Prop->getLocation(), diag::warn_autosynthesis_property_in_superclass) in DefaultSynthesizeProperties()
1969 << Prop->getIdentifier(); in DefaultSynthesizeProperties()
1982 /* property = */ Prop->getIdentifier(), in DefaultSynthesizeProperties()
1983 /* ivar = */ Prop->getDefaultSynthIvarName(Context), in DefaultSynthesizeProperties()
1984 Prop->getLocation(), Prop->getQueryKind())); in DefaultSynthesizeProperties()
1985 if (PIDecl && !Prop->isUnavailable()) { in DefaultSynthesizeProperties()
1986 Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis); in DefaultSynthesizeProperties()
2007 ObjCPropertyDecl *Prop, in DiagnoseUnimplementedAccessor() argument
2013 x->isClassMethod() == Prop->isClassProperty(); in DiagnoseUnimplementedAccessor()
2022 Prop->isClassProperty()))) { in DiagnoseUnimplementedAccessor()
2025 ? (Prop->isClassProperty() in DiagnoseUnimplementedAccessor()
2028 : (Prop->isClassProperty() in DiagnoseUnimplementedAccessor()
2031 S.Diag(IMPDecl->getLocation(), diag) << Prop->getDeclName() << Method; in DiagnoseUnimplementedAccessor()
2032 S.Diag(Prop->getLocation(), diag::note_property_declare); in DiagnoseUnimplementedAccessor()
2131 ObjCPropertyDecl *Prop = P->second; in DiagnoseUnimplementedProperties() local
2133 if (Prop->isInvalidDecl() || in DiagnoseUnimplementedProperties()
2134 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional || in DiagnoseUnimplementedProperties()
2135 PropImplMap.count(Prop) || in DiagnoseUnimplementedProperties()
2136 Prop->getAvailability() == AR_Unavailable) in DiagnoseUnimplementedProperties()
2141 PrimaryClass, Prop->getGetterName(), IMPDecl, CDecl, C, Prop, InsMap); in DiagnoseUnimplementedProperties()
2142 if (!Prop->isReadOnly()) in DiagnoseUnimplementedProperties()
2144 PrimaryClass, Prop->getSetterName(), in DiagnoseUnimplementedProperties()
2145 IMPDecl, CDecl, C, Prop, InsMap); in DiagnoseUnimplementedProperties()
2181 for (auto *Prop : IDecl->properties()) in AtomicPropertySetterGetterRules() local
2182 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop; in AtomicPropertySetterGetterRules()
2184 for (auto *Prop : Ext->properties()) in AtomicPropertySetterGetterRules() local
2185 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop; in AtomicPropertySetterGetterRules()