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

Lines Matching refs:PDecl

519   ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc,
529 ProcessPropertyDecl(PDecl);
530 return PDecl;
533 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) {
543 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType());
550 diag::err_type_mismatch_continuation_class) << PDecl->getType();
558 checkAtomicPropertyMismatch(*this, PIDecl, PDecl, true);
561 ProcessPropertyDecl(PDecl);
562 return PDecl;
622 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC,
633 Diag(PDecl->getLocation(), diag::err_duplicate_property);
635 PDecl->setInvalidDecl();
638 DC->addDecl(PDecl);
640 PDecl->setLexicalDeclContext(lexicalDC);
645 PDecl->setInvalidDecl();
648 ProcessDeclAttributes(S, PDecl, FD.D);
652 PDecl->setGetterName(GetterSel, GetterNameLoc);
653 PDecl->setSetterName(SetterSel, SetterNameLoc);
654 PDecl->setPropertyAttributesAsWritten(
658 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_readonly);
661 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_getter);
664 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_setter);
667 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_readwrite);
670 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_retain);
673 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_strong);
676 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_weak);
679 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_copy);
682 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_unsafe_unretained);
685 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_assign);
689 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_nonatomic);
691 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_atomic);
695 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_assign);
697 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_unsafe_unretained);
700 PDecl->setPropertyImplementation(ObjCPropertyDecl::Required);
702 PDecl->setPropertyImplementation(ObjCPropertyDecl::Optional);
705 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_nullability);
708 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_null_resettable);
711 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_class);
716 Diag(PDecl->getLocation(), diag::err_objc_direct_on_protocol) << true;
718 PDecl->setPropertyAttributes(ObjCPropertyAttribute::kind_direct);
720 Diag(PDecl->getLocation(), diag::warn_objc_direct_property_ignored)
721 << PDecl->getDeclName();
725 return PDecl;
853 if (const ObjCProtocolDecl *PDecl = PI->getDefinition())
854 PDecl->collectInheritedProtocolProperties(Property, ProtocolSet,
860 if (const ObjCProtocolDecl *PDecl = PI->getDefinition())
861 PDecl->collectInheritedProtocolProperties(Property, ProtocolSet,
1805 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(CDecl)) {
1806 for (auto *Prop : PDecl->properties()) {
1824 for (auto *PI : PDecl->protocols())
2077 for (auto *PDecl : IDecl->all_referenced_protocols()) {
2078 if (!PDecl->hasAttr<ObjCExplicitProtocolImplAttr>())
2094 // Add the properties of 'PDecl' to the list of properties that
2096 for (auto *PropDecl : PDecl->properties()) {
2650 void Sema::CheckObjCPropertyAttributes(Decl *PDecl,
2655 if (!PDecl || PDecl->isInvalidDecl())
2663 ObjCPropertyDecl *PropertyDecl = cast<ObjCPropertyDecl>(PDecl);