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

Lines Matching defs:Prop

107 CheckPropertyAgainstProtocol(Sema &S, ObjCPropertyDecl *Prop,
115 DeclContext::lookup_result R = Proto->lookup(Prop->getDeclName());
118 S.DiagnosePropertyMismatch(Prop, ProtoProp, Proto->getIdentifier(), true);
125 CheckPropertyAgainstProtocol(S, Prop, P, Known);
873 for (const auto &Prop : llvm::enumerate(Properties)) {
875 if (Property->isReadOnly() && !Prop.value()->isReadOnly()) {
876 Property = Prop.value();
877 SelectedIndex = Prop.index();
897 const ObjCPropertyDecl *Prop;
902 for (ObjCPropertyDecl *Prop : Properties) {
904 unsigned Attr = Prop->getPropertyAttributesAsWritten();
909 Mismatches.push_back({Prop, Kind, AttributeName});
941 if (Property->getGetterName() != Prop->getGetterName()) {
942 Mismatches.push_back({Prop, DifferentGetter, ""});
945 if (!Property->isReadOnly() && !Prop->isReadOnly() &&
946 Property->getSetterName() != Prop->getSetterName()) {
947 Mismatches.push_back({Prop, DifferentSetter, ""});
950 QualType LHSType = S.Context.getCanonicalType(Prop->getType());
956 Mismatches.push_back({Prop, IncompatibleType, ""});
996 S.Diag(Note.Prop->getLocation(), diag::note_protocol_property_declare)
1000 Diag << Note.Prop->getType();
1007 Diag << Note.Prop->getGetterName();
1010 Diag << Note.Prop->getSetterName();
1021 static bool hasWrittenStorageAttribute(ObjCPropertyDecl *Prop,
1023 if (Prop->getPropertyAttributesAsWritten() & OwnershipMask) return true;
1030 if (Prop->isReadOnly()) return false;
1033 auto Category = dyn_cast<ObjCCategoryDecl>(Prop->getDeclContext());
1038 for (auto Found : OrigClass->lookup(Prop->getDeclName())) {
1046 Prop->getIdentifier(), QueryKind))
1772 for (auto *Prop : IDecl->properties()) {
1773 if (CollectClassPropsOnly && !Prop->isClassProperty())
1775 PropMap[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] =
1776 Prop;
1792 for (auto *Prop : CATDecl->properties()) {
1793 if (CollectClassPropsOnly && !Prop->isClassProperty())
1795 PropMap[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] =
1796 Prop;
1806 for (auto *Prop : PDecl->properties()) {
1807 if (CollectClassPropsOnly && !Prop->isClassProperty())
1810 SuperPropMap[std::make_pair(Prop->getIdentifier(),
1811 Prop->isClassProperty())];
1815 PropertyFromSuper->getIdentifier() != Prop->getIdentifier()) {
1817 PropMap[std::make_pair(Prop->getIdentifier(),
1818 Prop->isClassProperty())];
1820 PropEntry = Prop;
1877 ObjCPropertyDecl *Prop) {
1880 if (Prop->getPropertyAttributes() & ObjCPropertyAttribute::kind_readonly)
1885 if (!SuperClassImplementsGetter && SDecl->getInstanceMethod(Prop->getGetterName()))
1888 if (!SuperClassImplementsSetter && SDecl->getInstanceMethod(Prop->getSetterName()))
1911 ObjCPropertyDecl *Prop = PropertyOrder[i];
1913 if (Prop->isInvalidDecl() ||
1914 Prop->isClassProperty() ||
1915 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional)
1919 Prop->getIdentifier(), Prop->getQueryKind()))
1921 ObjCMethodDecl *ImpMethod = IMPDecl->getInstanceMethod(Prop->getGetterName());
1923 if (Prop->getPropertyAttributes() & ObjCPropertyAttribute::kind_readonly)
1925 ImpMethod = IMPDecl->getInstanceMethod(Prop->getSetterName());
1930 IMPDecl->FindPropertyImplIvarDecl(Prop->getIdentifier())) {
1931 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property)
1932 << Prop->getIdentifier();
1938 SuperPropMap[std::make_pair(Prop->getIdentifier(),
1939 Prop->isClassProperty())];
1941 dyn_cast<ObjCProtocolDecl>(Prop->getDeclContext())) {
1946 if (!SuperClassImplementsProperty(IDecl, Prop) && !PropInSuperClass) {
1949 << Prop << Proto;
1950 Diag(Prop->getLocation(), diag::note_property_declare);
1952 (Twine("@synthesize ") + Prop->getName() + ";\n\n").str();
1960 if ((Prop->getPropertyAttributes() &
1964 !IMPDecl->getInstanceMethod(Prop->getSetterName()) &&
1965 !IDecl->HasUserDeclaredSetterMethod(Prop)) {
1966 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property)
1967 << Prop->getIdentifier();
1970 Diag(Prop->getLocation(), diag::warn_autosynthesis_property_in_superclass)
1971 << Prop->getIdentifier();
1984 /* property = */ Prop->getIdentifier(),
1985 /* ivar = */ Prop->getDefaultSynthIvarName(Context),
1986 Prop->getLocation(), Prop->getQueryKind()));
1987 if (PIDecl && !Prop->isUnavailable()) {
1988 Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis);
2009 ObjCPropertyDecl *Prop,
2015 x->isClassMethod() == Prop->isClassProperty();
2024 Prop->isClassProperty()))) {
2027 ? (Prop->isClassProperty()
2030 : (Prop->isClassProperty()
2033 S.Diag(IMPDecl->getLocation(), diag) << Prop->getDeclName() << Method;
2034 S.Diag(Prop->getLocation(), diag::note_property_declare);
2133 ObjCPropertyDecl *Prop = P->second;
2135 if (Prop->isInvalidDecl() ||
2136 Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional ||
2137 PropImplMap.count(Prop) ||
2138 Prop->getAvailability() == AR_Unavailable)
2143 PrimaryClass, Prop->getGetterName(), IMPDecl, CDecl, C, Prop, InsMap);
2144 if (!Prop->isReadOnly())
2146 PrimaryClass, Prop->getSetterName(),
2147 IMPDecl, CDecl, C, Prop, InsMap);
2183 for (auto *Prop : IDecl->properties())
2184 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop;
2186 for (auto *Prop : Ext->properties())
2187 PM[std::make_pair(Prop->getIdentifier(), Prop->isClassProperty())] = Prop;