Lines Matching refs:property

66                                            ObjCPropertyDecl *property) {  in checkPropertyDeclWithOwnership()  argument
67 if (property->isInvalidDecl()) return; in checkPropertyDeclWithOwnership()
69 ObjCPropertyAttribute::Kind propertyKind = property->getPropertyAttributes(); in checkPropertyDeclWithOwnership()
71 = property->getType().getObjCLifetime(); in checkPropertyDeclWithOwnership()
76 = getImpliedARCOwnership(propertyKind, property->getType()); in checkPropertyDeclWithOwnership()
91 property->setPropertyAttributes(attr); in checkPropertyDeclWithOwnership()
97 property->setInvalidDecl(); in checkPropertyDeclWithOwnership()
98 S.Diag(property->getLocation(), in checkPropertyDeclWithOwnership()
100 << property->getDeclName() in checkPropertyDeclWithOwnership()
707 ObjCPropertyDecl *property, in checkARCPropertyImpl() argument
709 if (property->isInvalidDecl() || ivar->isInvalidDecl()) return; in checkARCPropertyImpl()
716 getImpliedARCOwnership(property->getPropertyAttributes(), in checkARCPropertyImpl()
717 property->getType()); in checkARCPropertyImpl()
749 << property->getDeclName() in checkARCPropertyImpl()
756 << property->getDeclName() in checkARCPropertyImpl()
762 << property->getDeclName() << ivar->getDeclName() in checkARCPropertyImpl()
763 << ((property->getPropertyAttributesAsWritten() & in checkARCPropertyImpl()
775 S.Diag(property->getLocation(), diag::note_property_declare); in checkARCPropertyImpl()
786 ObjCPropertyDecl *property, ObjCIvarDecl *ivar) { in setImpliedPropertyAttributeForReadOnlyProperty() argument
788 getImpliedARCOwnership(property->getPropertyAttributes(), in setImpliedPropertyAttributeForReadOnlyProperty()
789 property->getType()); in setImpliedPropertyAttributeForReadOnlyProperty()
795 property->setPropertyAttributes(ObjCPropertyAttribute::kind_strong); in setImpliedPropertyAttributeForReadOnlyProperty()
802 property->setPropertyAttributes(ObjCPropertyAttribute::kind_strong); in setImpliedPropertyAttributeForReadOnlyProperty()
804 property->setPropertyAttributes(ObjCPropertyAttribute::kind_weak); in setImpliedPropertyAttributeForReadOnlyProperty()
1079 ObjCPropertyDecl *property = nullptr; in ActOnPropertyImplDecl() local
1093 property = IDecl->FindPropertyDeclaration(PropertyId, QueryKind); in ActOnPropertyImplDecl()
1094 if (!property) { in ActOnPropertyImplDecl()
1098 if (property->isClassProperty() && Synthesize) { in ActOnPropertyImplDecl()
1102 unsigned PIkind = property->getPropertyAttributesAsWritten(); in ActOnPropertyImplDecl()
1109 Diag(property->getLocation(), diag::note_property_declare); in ActOnPropertyImplDecl()
1113 dyn_cast<ObjCCategoryDecl>(property->getDeclContext())) { in ActOnPropertyImplDecl()
1116 Diag(property->getLocation(), diag::note_property_declare); in ActOnPropertyImplDecl()
1121 property->hasAttr<IBOutletAttr>() && !AtLoc.isValid()) { in ActOnPropertyImplDecl()
1126 DeclContext::lookup_result R = Ext->lookup(property->getDeclName()); in ActOnPropertyImplDecl()
1137 Diag(property->getLocation(), diag::warn_auto_readonly_iboutlet_property) in ActOnPropertyImplDecl()
1138 << property; in ActOnPropertyImplDecl()
1141 property->getLParenLoc(), readonlyLoc)) { in ActOnPropertyImplDecl()
1145 Diag(property->getLocation(), in ActOnPropertyImplDecl()
1151 if (Synthesize && isa<ObjCProtocolDecl>(property->getDeclContext())) in ActOnPropertyImplDecl()
1152 property = SelectPropertyForSynthesisFromProtocols(SemaRef, AtLoc, IDecl, in ActOnPropertyImplDecl()
1153 property); in ActOnPropertyImplDecl()
1173 property = Category->FindPropertyDeclaration(PropertyId, QueryKind); in ActOnPropertyImplDecl()
1174 if (!property) { in ActOnPropertyImplDecl()
1194 QualType PropType = property->getType(); in ActOnPropertyImplDecl()
1199 property->getDeclName())) { in ActOnPropertyImplDecl()
1200 Diag(property->getLocation(), diag::note_property_declare); in ActOnPropertyImplDecl()
1205 (property->getPropertyAttributesAsWritten() & in ActOnPropertyImplDecl()
1208 setImpliedPropertyAttributeForReadOnlyProperty(property, Ivar); in ActOnPropertyImplDecl()
1211 ObjCPropertyAttribute::Kind kind = property->getPropertyAttributes(); in ActOnPropertyImplDecl()
1220 Diag(property->getLocation(), diag::note_property_declare); in ActOnPropertyImplDecl()
1236 Diag(property->getLocation(), diag::note_property_declare); in ActOnPropertyImplDecl()
1245 Diag(property->getLocation(), in ActOnPropertyImplDecl()
1263 IDecl->lookupInstanceVariable(property->getIdentifier(), in ActOnPropertyImplDecl()
1270 Diag(property->getLocation(), diag::note_property_declare); in ActOnPropertyImplDecl()
1284 if (!hasWrittenStorageAttribute(property, QueryKind) && in ActOnPropertyImplDecl()
1288 Diag(property->getLocation(), diag::note_property_declare); in ActOnPropertyImplDecl()
1308 Diag(property->getLocation(), diag::note_property_declare); in ActOnPropertyImplDecl()
1333 << property->getDeclName() << Ivar->getDeclName() in ActOnPropertyImplDecl()
1339 property->setPropertyIvarDecl(Ivar); in ActOnPropertyImplDecl()
1357 << property->getDeclName() << PropType in ActOnPropertyImplDecl()
1372 << property->getDeclName() << PropType in ActOnPropertyImplDecl()
1382 << property->getDeclName() << Ivar->getDeclName(); in ActOnPropertyImplDecl()
1387 if ((property->getType()->isObjCObjectPointerType() || in ActOnPropertyImplDecl()
1391 << property->getDeclName() << Ivar->getDeclName(); in ActOnPropertyImplDecl()
1397 checkARCPropertyImpl(SemaRef, PropertyLoc, property, Ivar); in ActOnPropertyImplDecl()
1402 assert (property && "ActOnPropertyImplDecl - property declaration missing"); in ActOnPropertyImplDecl()
1404 Context, SemaRef.CurContext, AtLoc, PropertyLoc, property, in ActOnPropertyImplDecl()
1412 if (ObjCMethodDecl *getterMethod = property->getGetterMethodDecl()) { in ActOnPropertyImplDecl()
1457 if (property->hasAttr<NSReturnsNotRetainedAttr>() && in ActOnPropertyImplDecl()
1461 Diag(property->getLocation(), diag::note_property_declare); in ActOnPropertyImplDecl()
1477 if (ObjCMethodDecl *setterMethod = property->getSetterMethodDecl()) { in ActOnPropertyImplDecl()
1516 if (property->getPropertyAttributes() & in ActOnPropertyImplDecl()
1523 if (property->getType()->isReferenceType()) { in ActOnPropertyImplDecl()
1526 << property->getType(); in ActOnPropertyImplDecl()
1687 bool SemaObjC::DiagnosePropertyAccessorMismatch(ObjCPropertyDecl *property, in DiagnosePropertyAccessorMismatch() argument
1695 property->getType().getNonReferenceType().getAtomicUnqualifiedType(); in DiagnosePropertyAccessorMismatch()
1707 << property->getDeclName() << PropertyRValueType in DiagnosePropertyAccessorMismatch()
1722 << property->getDeclName() in DiagnosePropertyAccessorMismatch()
2121 const auto *property = propertyImpl->getPropertyDecl(); in diagnoseNullResettableSynthesizedSetters() local
2126 (property->getPropertyAttributes() & in diagnoseNullResettableSynthesizedSetters()
2128 property->getGetterMethodDecl() && property->getSetterMethodDecl()) { in diagnoseNullResettableSynthesizedSetters()
2138 << setterImpl->getSelector() << property->getDeclName(); in diagnoseNullResettableSynthesizedSetters()
2356 void SemaObjC::ProcessPropertyDecl(ObjCPropertyDecl *property) { in ProcessPropertyDecl() argument
2359 ObjCContainerDecl *CD = cast<ObjCContainerDecl>(property->getDeclContext()); in ProcessPropertyDecl()
2363 bool IsClassProperty = property->isClassProperty(); in ProcessPropertyDecl()
2365 CD->getClassMethod(property->getGetterName()) : in ProcessPropertyDecl()
2366 CD->getInstanceMethod(property->getGetterName()); in ProcessPropertyDecl()
2374 getClassMethod(property->getGetterName()) : in ProcessPropertyDecl()
2376 getInstanceMethod(property->getGetterName()); in ProcessPropertyDecl()
2379 CD->getClassMethod(property->getSetterName()) : in ProcessPropertyDecl()
2380 CD->getInstanceMethod(property->getSetterName()); in ProcessPropertyDecl()
2385 getClassMethod(property->getSetterName()) : in ProcessPropertyDecl()
2387 getInstanceMethod(property->getSetterName()); in ProcessPropertyDecl()
2388 DiagnosePropertyAccessorMismatch(property, GetterMethod, in ProcessPropertyDecl()
2389 property->getLocation()); in ProcessPropertyDecl()
2396 property->getGetterName(), !IsClassProperty, true, false, CatDecl); in ProcessPropertyDecl()
2398 if (ExistingGetter->isDirectMethod() || property->isDirectProperty()) { in ProcessPropertyDecl()
2399 Diag(property->getLocation(), diag::err_objc_direct_duplicate_decl) in ProcessPropertyDecl()
2400 << property->isDirectProperty() << 1 /* property */ in ProcessPropertyDecl()
2409 if (!property->isReadOnly() && !SetterMethod) { in ProcessPropertyDecl()
2412 property->getSetterName(), !IsClassProperty, true, false, CatDecl); in ProcessPropertyDecl()
2414 if (ExistingSetter->isDirectMethod() || property->isDirectProperty()) { in ProcessPropertyDecl()
2415 Diag(property->getLocation(), diag::err_objc_direct_duplicate_decl) in ProcessPropertyDecl()
2416 << property->isDirectProperty() << 1 /* property */ in ProcessPropertyDecl()
2425 if (!property->isReadOnly() && SetterMethod) { in ProcessPropertyDecl()
2432 property->getType().getNonReferenceType())) { in ProcessPropertyDecl()
2433 Diag(property->getLocation(), in ProcessPropertyDecl()
2435 << property->getDeclName() in ProcessPropertyDecl()
2451 SourceLocation Loc = property->getLocation(); in ProcessPropertyDecl()
2455 QualType resultTy = property->getType().getAtomicUnqualifiedType(); in ProcessPropertyDecl()
2458 if (property->getPropertyAttributes() & in ProcessPropertyDecl()
2469 Context, Loc, Loc, property->getGetterName(), resultTy, nullptr, CD, in ProcessPropertyDecl()
2473 (property->getPropertyImplementation() == ObjCPropertyDecl::Optional) in ProcessPropertyDecl()
2478 AddPropertyAttrs(SemaRef, GetterMethod, property); in ProcessPropertyDecl()
2480 if (property->isDirectProperty()) in ProcessPropertyDecl()
2483 if (property->hasAttr<NSReturnsNotRetainedAttr>()) in ProcessPropertyDecl()
2487 if (property->hasAttr<ObjCReturnsInnerPointerAttr>()) in ProcessPropertyDecl()
2491 if (const SectionAttr *SA = property->getAttr<SectionAttr>()) in ProcessPropertyDecl()
2506 property->setGetterMethodDecl(GetterMethod); in ProcessPropertyDecl()
2509 if (!property->isReadOnly()) { in ProcessPropertyDecl()
2516 SourceLocation Loc = property->getLocation(); in ProcessPropertyDecl()
2519 Context, Loc, Loc, property->getSetterName(), Context.VoidTy, nullptr, in ProcessPropertyDecl()
2526 (property->getPropertyImplementation() == ObjCPropertyDecl::Optional) in ProcessPropertyDecl()
2532 property->getType().getUnqualifiedType().getAtomicUnqualifiedType(); in ProcessPropertyDecl()
2536 if (property->getPropertyAttributes() & in ProcessPropertyDecl()
2550 property->getIdentifier(), in ProcessPropertyDecl()
2557 AddPropertyAttrs(SemaRef, SetterMethod, property); in ProcessPropertyDecl()
2559 if (property->isDirectProperty()) in ProcessPropertyDecl()
2563 if (const SectionAttr *SA = property->getAttr<SectionAttr>()) in ProcessPropertyDecl()
2580 property->setSetterMethodDecl(SetterMethod); in ProcessPropertyDecl()