Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaObjCProperty.cpp348 ObjCPropertyDecl *PDecl = in HandlePropertyInClassExtension() local
351 PDecl->setPropertyAttributesAsWritten( in HandlePropertyInClassExtension()
354 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readonly); in HandlePropertyInClassExtension()
356 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readwrite); in HandlePropertyInClassExtension()
358 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_nonatomic); in HandlePropertyInClassExtension()
360 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_atomic); in HandlePropertyInClassExtension()
362 PDecl->setGetterName(GetterSel); in HandlePropertyInClassExtension()
363 PDecl->setSetterName(SetterSel); in HandlePropertyInClassExtension()
364 ProcessDeclAttributes(S, PDecl, FD.D); in HandlePropertyInClassExtension()
365 DC->addDecl(PDecl); in HandlePropertyInClassExtension()
[all …]
DSemaDeclObjC.cpp683 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency() local
685 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
691 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
695 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
716 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local
726 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
729 PDecl->startDefinition(); in ActOnStartProtocolInterface()
741 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
745 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
746 PDecl->startDefinition(); in ActOnStartProtocolInterface()
[all …]
DSemaExprObjC.cpp1103 ObjCProtocolDecl* PDecl = LookupProtocol(ProtocolId, ProtoIdLoc); in ParseObjCProtocolExpression() local
1104 if (!PDecl) { in ParseObjCProtocolExpression()
1113 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); in ParseObjCProtocolExpression()
1507 const ObjCPropertyDecl *PDecl = nullptr; in DiagnoseARCUseOfWeakReceiver() local
1519 PDecl = PRE->getExplicitProperty(); in DiagnoseARCUseOfWeakReceiver()
1520 if (PDecl) { in DiagnoseARCUseOfWeakReceiver()
1521 T = PDecl->getType(); in DiagnoseARCUseOfWeakReceiver()
1531 PDecl = Method->findPropertyDecl(); in DiagnoseARCUseOfWeakReceiver()
1532 if (PDecl) in DiagnoseARCUseOfWeakReceiver()
1533 T = PDecl->getType(); in DiagnoseARCUseOfWeakReceiver()
[all …]
DSemaExprMember.cpp394 static Decl *FindGetterSetterNameDeclFromProtocolList(const ObjCProtocolDecl*PDecl, in FindGetterSetterNameDeclFromProtocolList() argument
399 if (ObjCPropertyDecl *PD = PDecl->FindPropertyDeclaration(Member)) in FindGetterSetterNameDeclFromProtocolList()
401 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList()
404 for (const auto *I : PDecl->protocols()) { in FindGetterSetterNameDeclFromProtocolList()
DSemaCodeComplete.cpp2550 if (const ObjCPropertyDecl *PDecl = M->findPropertyDecl()) in CreateCodeCompletionString() local
2551 if (PDecl->getGetterName() == M->getSelector() && in CreateCodeCompletionString()
2552 PDecl->getIdentifier() != M->getIdentifier()) { in CreateCodeCompletionString()
2559 Ctx.getRawCommentForAnyRedecl(PDecl)) { in CreateCodeCompletionString()
2631 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in CreateCodeCompletionString() local
2632 if (const RawComment *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in CreateCodeCompletionString()
DSemaDeclAttr.cpp3514 if (const ObjCProtocolDecl *PDecl = dyn_cast_or_null<ObjCProtocolDecl>(DC)) { in handleObjCRequiresSuperAttr() local
3517 S.Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleObjCRequiresSuperAttr()
DSemaExpr.cpp10855 const ObjCProtocolDecl *PDecl = nullptr; in DiagnoseAssignmentResult() local
10942 PDecl = srcProto; in DiagnoseAssignmentResult()
10953 PDecl = dstProto; in DiagnoseAssignmentResult()
11021 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult()
11023 << IFace->getName() << PDecl->getName(); in DiagnoseAssignmentResult()
/external/clang/lib/AST/
DDeclPrinter.cpp1075 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument
1076 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1078 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1082 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1085 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1091 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_getter) { in VisitObjCPropertyDecl()
1093 PDecl->getGetterName().print(Out); in VisitObjCPropertyDecl()
1096 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter) { in VisitObjCPropertyDecl()
1098 PDecl->getSetterName().print(Out); in VisitObjCPropertyDecl()
1102 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_assign) { in VisitObjCPropertyDecl()
[all …]
DDeclObjC.cpp1522 ObjCProtocolDecl *PDecl = this; in lookupProtocolNamed() local
1525 return PDecl; in lookupProtocolNamed()
1528 if ((PDecl = I->lookupProtocolNamed(Name))) in lookupProtocolNamed()
1529 return PDecl; in lookupProtocolNamed()
1572 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement() local
1573 for (auto *Prop : PDecl->properties()) { in collectPropertiesToImplement()
1579 for (const auto *PI : PDecl->protocols()) in collectPropertiesToImplement()
1588 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties() local
1590 for (auto *Prop : PDecl->properties()) { in collectInheritedProtocolProperties()
1594 PM[PDecl] = Prop; in collectInheritedProtocolProperties()
[all …]
DASTContext.cpp467 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl() local
468 if (comments::FullComment *FC = getCommentForDecl(PDecl, PP)) in getCommentForDecl()
/external/clang/lib/Rewrite/Frontend/
DRewriteObjC.cpp993 void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
994 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl()
995 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
1000 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
1002 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
1004 for (auto *I : PDecl->properties()) in RewriteProtocolDecl()
1008 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1130 for (const auto *PDecl : OMD->params()) { in RewriteObjCMethodDecl() local
1132 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
1134 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
DRewriteModernObjC.cpp1175 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
1176 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl()
1177 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
1182 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
1184 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
1186 for (auto *I : PDecl->properties()) in RewriteProtocolDecl()
1190 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1328 for (const auto *PDecl : OMD->params()) { in RewriteObjCMethodDecl() local
1330 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
1332 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
/external/clang/lib/ARCMigrate/
DTransZeroOutPropsInDealloc.cpp206 if (ObjCPropertyDecl *PDecl = PropRefExp->getExplicitProperty()) { in isZeroingPropIvar() local
207 if (!SynthesizedProperties.count(PDecl)) in isZeroingPropIvar()
DObjCMT.cpp505 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) in ClassImplementsAllMethodsAndProperties() local
506 for (const auto *Property : PDecl->properties()) { in ClassImplementsAllMethodsAndProperties()
533 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { in ClassImplementsAllMethodsAndProperties() local
534 if (PDecl->meth_begin() == PDecl->meth_end()) in ClassImplementsAllMethodsAndProperties()
536 for (const auto *MD : PDecl->methods()) { in ClassImplementsAllMethodsAndProperties()
737 ObjCProtocolDecl *PDecl = ConformingProtocols[i1]; in migrateProtocolConformance() local
738 if (PDecl == TargetPDecl) in migrateProtocolConformance()
740 if (PDecl->lookupProtocolNamed( in migrateProtocolConformance()
1725 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(*D)) in HandleTranslationUnit() local
1726 ObjCProtocolDecls.insert(PDecl->getCanonicalDecl()); in HandleTranslationUnit()
/external/clang/include/clang/AST/
DExprObjC.h684 const ObjCPropertyDecl *PDecl = getExplicitProperty();
685 if (const ObjCMethodDecl *Getter = PDecl->getGetterMethodDecl())
688 ResultType = PDecl->getType();
704 if (ObjCPropertyDecl *PDecl = getExplicitProperty())
705 if (const ObjCMethodDecl *Setter = PDecl->getSetterMethodDecl()) {
/external/clang/include/clang/Sema/
DSema.h2780 const ObjCPropertyDecl *&PDecl) const;