Home
last modified time | relevance | path

Searched refs:PDecl (Results 1 – 13 of 13) sorted by relevance

/external/clang/lib/Sema/
DSemaObjCProperty.cpp289 ObjCPropertyDecl *PDecl = in HandlePropertyInClassExtension() local
292 PDecl->setPropertyAttributesAsWritten( in HandlePropertyInClassExtension()
295 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readonly); in HandlePropertyInClassExtension()
297 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readwrite); in HandlePropertyInClassExtension()
299 PDecl->setGetterName(GetterSel); in HandlePropertyInClassExtension()
300 PDecl->setSetterName(SetterSel); in HandlePropertyInClassExtension()
301 ProcessDeclAttributes(S, PDecl, FD.D); in HandlePropertyInClassExtension()
302 DC->addDecl(PDecl); in HandlePropertyInClassExtension()
329 PDecl->setGetterMethodDecl(PrimaryPDecl->getGetterMethodDecl()); in HandlePropertyInClassExtension()
330 PDecl->setSetterMethodDecl(PrimaryPDecl->getSetterMethodDecl()); in HandlePropertyInClassExtension()
[all …]
DSemaDeclObjC.cpp614 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency() local
616 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
622 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
626 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
647 ObjCProtocolDecl *PDecl = 0; in ActOnStartProtocolInterface() local
657 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
660 PDecl->startDefinition(); in ActOnStartProtocolInterface()
672 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
676 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
677 PDecl->startDefinition(); in ActOnStartProtocolInterface()
[all …]
DSemaExprObjC.cpp1022 ObjCProtocolDecl* PDecl = LookupProtocol(ProtocolId, ProtoIdLoc); in ParseObjCProtocolExpression() local
1023 if (!PDecl) { in ParseObjCProtocolExpression()
1032 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); in ParseObjCProtocolExpression()
1308 ObjCPropertyDecl *PDecl = 0; in DiagnoseARCUseOfWeakReceiver() local
1320 PDecl = PRE->getExplicitProperty(); in DiagnoseARCUseOfWeakReceiver()
1321 if (PDecl) { in DiagnoseARCUseOfWeakReceiver()
1322 T = PDecl->getType(); in DiagnoseARCUseOfWeakReceiver()
1335 PDecl = in DiagnoseARCUseOfWeakReceiver()
1339 if (PDecl) in DiagnoseARCUseOfWeakReceiver()
1340 T = PDecl->getType(); in DiagnoseARCUseOfWeakReceiver()
[all …]
DSemaExprMember.cpp385 static Decl *FindGetterSetterNameDeclFromProtocolList(const ObjCProtocolDecl*PDecl, in FindGetterSetterNameDeclFromProtocolList() argument
390 if (ObjCPropertyDecl *PD = PDecl->FindPropertyDeclaration(Member)) in FindGetterSetterNameDeclFromProtocolList()
392 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList()
395 for (ObjCProtocolDecl::protocol_iterator I = PDecl->protocol_begin(), in FindGetterSetterNameDeclFromProtocolList()
396 E = PDecl->protocol_end(); I != E; ++I) { in FindGetterSetterNameDeclFromProtocolList()
DSemaDeclAttr.cpp3996 if (const ObjCProtocolDecl *PDecl = dyn_cast_or_null<ObjCProtocolDecl>(DC)) { in handleObjCRequiresSuperAttr() local
3999 S.Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleObjCRequiresSuperAttr()
DSemaExpr.cpp7456 ObjCPropertyDecl *PDecl = PropExpr->getExplicitProperty(); in IsReadonlyProperty() local
7464 if (S.isPropertyReadonly(PDecl, IFace)) in IsReadonlyProperty()
/external/clang/lib/AST/
DDeclPrinter.cpp970 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument
971 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
973 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
977 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
980 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
986 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_getter) { in VisitObjCPropertyDecl()
988 << PDecl->getGetterName().getAsString(); in VisitObjCPropertyDecl()
991 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter) { in VisitObjCPropertyDecl()
993 << PDecl->getSetterName().getAsString(); in VisitObjCPropertyDecl()
997 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_assign) { in VisitObjCPropertyDecl()
[all …]
DDeclObjC.cpp1042 ObjCProtocolDecl *PDecl = this; in lookupProtocolNamed() local
1045 return PDecl; in lookupProtocolNamed()
1048 if ((PDecl = (*I)->lookupProtocolNamed(Name))) in lookupProtocolNamed()
1049 return PDecl; in lookupProtocolNamed()
/external/clang/lib/Rewrite/Frontend/
DRewriteObjC.cpp991 void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
992 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl()
993 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
999 I = PDecl->instmeth_begin(), E = PDecl->instmeth_end(); in RewriteProtocolDecl()
1003 I = PDecl->classmeth_begin(), E = PDecl->classmeth_end(); in RewriteProtocolDecl()
1007 for (ObjCInterfaceDecl::prop_iterator I = PDecl->prop_begin(), in RewriteProtocolDecl()
1008 E = PDecl->prop_end(); I != E; ++I) in RewriteProtocolDecl()
1012 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1136 ParmVarDecl *PDecl = *PI; in RewriteObjCMethodDecl() local
1138 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
[all …]
DRewriteModernObjC.cpp1103 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
1104 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl()
1105 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
1111 I = PDecl->instmeth_begin(), E = PDecl->instmeth_end(); in RewriteProtocolDecl()
1115 I = PDecl->classmeth_begin(), E = PDecl->classmeth_end(); in RewriteProtocolDecl()
1119 for (ObjCInterfaceDecl::prop_iterator I = PDecl->prop_begin(), in RewriteProtocolDecl()
1120 E = PDecl->prop_end(); I != E; ++I) in RewriteProtocolDecl()
1124 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1264 ParmVarDecl *PDecl = *PI; in RewriteObjCMethodDecl() local
1266 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
[all …]
/external/clang/lib/ARCMigrate/
DTransZeroOutPropsInDealloc.cpp208 if (ObjCPropertyDecl *PDecl = PropRefExp->getExplicitProperty()) { in isZeroingPropIvar() local
209 if (!SynthesizedProperties.count(PDecl)) in isZeroingPropIvar()
/external/clang/include/clang/AST/
DExprObjC.h671 const ObjCPropertyDecl *PDecl = getExplicitProperty(); in getGetterResultType() local
672 if (const ObjCMethodDecl *Getter = PDecl->getGetterMethodDecl()) in getGetterResultType()
675 ResultType = PDecl->getType(); in getGetterResultType()
691 if (ObjCPropertyDecl *PDecl = getExplicitProperty()) in getSetterArgType() local
692 if (const ObjCMethodDecl *Setter = PDecl->getSetterMethodDecl()) { in getSetterArgType()
/external/clang/include/clang/Sema/
DSema.h2256 ObjCProtocolDecl *PDecl,
6084 ObjCProtocolDecl *PDecl);