Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaObjCProperty.cpp349 ObjCPropertyDecl *PDecl = in HandlePropertyInClassExtension() local
352 PDecl->setPropertyAttributesAsWritten( in HandlePropertyInClassExtension()
355 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readonly); in HandlePropertyInClassExtension()
357 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readwrite); in HandlePropertyInClassExtension()
359 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_nonatomic); in HandlePropertyInClassExtension()
361 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_atomic); in HandlePropertyInClassExtension()
363 PDecl->setGetterName(GetterSel); in HandlePropertyInClassExtension()
364 PDecl->setSetterName(SetterSel); in HandlePropertyInClassExtension()
365 ProcessDeclAttributes(S, PDecl, FD.D); in HandlePropertyInClassExtension()
366 DC->addDecl(PDecl); in HandlePropertyInClassExtension()
[all …]
DSemaDeclObjC.cpp679 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency() local
681 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
687 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
691 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
712 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local
722 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
725 PDecl->startDefinition(); in ActOnStartProtocolInterface()
737 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
741 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
742 PDecl->startDefinition(); in ActOnStartProtocolInterface()
[all …]
DSemaExprObjC.cpp1106 ObjCProtocolDecl* PDecl = LookupProtocol(ProtocolId, ProtoIdLoc); in ParseObjCProtocolExpression() local
1107 if (!PDecl) { in ParseObjCProtocolExpression()
1111 if (PDecl->hasDefinition()) in ParseObjCProtocolExpression()
1112 PDecl = PDecl->getDefinition(); in ParseObjCProtocolExpression()
1118 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); in ParseObjCProtocolExpression()
1612 if (const ObjCPropertyDecl *PDecl = Setter->findPropertyDecl()) { in HandleExprPropertyRefExpr() local
1615 if (!(PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter)) in HandleExprPropertyRefExpr()
1618 << MemberName << QualType(OPT, 0) << PDecl->getName() in HandleExprPropertyRefExpr()
1619 << FixItHint::CreateReplacement(MemberLoc, PDecl->getName()); in HandleExprPropertyRefExpr()
3528 if (ObjCPropertyDecl *PDecl = PRE->getExplicitProperty()) in CheckObjCBridgeRelatedCast() local
[all …]
DSemaExprMember.cpp396 static Decl *FindGetterSetterNameDeclFromProtocolList(const ObjCProtocolDecl*PDecl, in FindGetterSetterNameDeclFromProtocolList() argument
401 if (ObjCPropertyDecl *PD = PDecl->FindPropertyDeclaration(Member)) in FindGetterSetterNameDeclFromProtocolList()
403 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList()
406 for (const auto *I : PDecl->protocols()) { in FindGetterSetterNameDeclFromProtocolList()
DSemaCodeComplete.cpp2553 if (const ObjCPropertyDecl *PDecl = M->findPropertyDecl()) in CreateCodeCompletionString() local
2554 if (PDecl->getGetterName() == M->getSelector() && in CreateCodeCompletionString()
2555 PDecl->getIdentifier() != M->getIdentifier()) { in CreateCodeCompletionString()
2562 Ctx.getRawCommentForAnyRedecl(PDecl)) { in CreateCodeCompletionString()
2635 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in CreateCodeCompletionString() local
2636 if (const RawComment *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in CreateCodeCompletionString()
DSemaExpr.cpp7157 ObjCProtocolDecl *PDecl = OPE->getProtocol(); in CheckSingleAssignmentConstraints() local
7158 if (PDecl && !PDecl->hasDefinition()) { in CheckSingleAssignmentConstraints()
7159 Diag(PRE->getExprLoc(), diag::warn_atprotocol_protocol) << PDecl->getName(); in CheckSingleAssignmentConstraints()
7160 Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl; in CheckSingleAssignmentConstraints()
11541 const ObjCProtocolDecl *PDecl = nullptr; in DiagnoseAssignmentResult() local
11628 PDecl = srcProto; in DiagnoseAssignmentResult()
11639 PDecl = dstProto; in DiagnoseAssignmentResult()
11707 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult()
11709 << IFace->getName() << PDecl->getName(); in DiagnoseAssignmentResult()
DSemaDeclAttr.cpp3748 if (const ObjCProtocolDecl *PDecl = dyn_cast_or_null<ObjCProtocolDecl>(DC)) { in handleObjCRequiresSuperAttr() local
3751 S.Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleObjCRequiresSuperAttr()
/external/clang/lib/AST/
DDeclPrinter.cpp1098 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument
1099 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1101 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1105 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1108 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1114 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_getter) { in VisitObjCPropertyDecl()
1116 PDecl->getGetterName().print(Out); in VisitObjCPropertyDecl()
1119 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter) { in VisitObjCPropertyDecl()
1121 PDecl->getSetterName().print(Out); in VisitObjCPropertyDecl()
1125 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_assign) { in VisitObjCPropertyDecl()
[all …]
DDeclObjC.cpp1553 ObjCProtocolDecl *PDecl = this; in lookupProtocolNamed() local
1556 return PDecl; in lookupProtocolNamed()
1559 if ((PDecl = I->lookupProtocolNamed(Name))) in lookupProtocolNamed()
1560 return PDecl; in lookupProtocolNamed()
1603 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement() local
1604 for (auto *Prop : PDecl->properties()) { in collectPropertiesToImplement()
1610 for (const auto *PI : PDecl->protocols()) in collectPropertiesToImplement()
1619 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties() local
1621 for (auto *Prop : PDecl->properties()) { in collectInheritedProtocolProperties()
1625 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/Frontend/Rewrite/
DRewriteObjC.cpp984 void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
985 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl()
986 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
991 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
993 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
995 for (auto *I : PDecl->properties()) in RewriteProtocolDecl()
999 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1121 for (const auto *PDecl : OMD->params()) { in RewriteObjCMethodDecl() local
1123 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
1125 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
DRewriteModernObjC.cpp1163 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
1164 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl()
1165 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
1170 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
1172 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
1174 for (auto *I : PDecl->properties()) in RewriteProtocolDecl()
1178 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1316 for (const auto *PDecl : OMD->params()) { in RewriteObjCMethodDecl() local
1318 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
1320 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.cpp617 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) in ClassImplementsAllMethodsAndProperties() local
618 for (const auto *Property : PDecl->properties()) { in ClassImplementsAllMethodsAndProperties()
645 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { in ClassImplementsAllMethodsAndProperties() local
646 if (PDecl->meth_begin() == PDecl->meth_end()) in ClassImplementsAllMethodsAndProperties()
648 for (const auto *MD : PDecl->methods()) { in ClassImplementsAllMethodsAndProperties()
889 ObjCProtocolDecl *PDecl = ConformingProtocols[i1]; in migrateProtocolConformance() local
890 if (PDecl == TargetPDecl) in migrateProtocolConformance()
892 if (PDecl->lookupProtocolNamed( in migrateProtocolConformance()
1882 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(*D)) { in HandleTranslationUnit() local
1883 ObjCProtocolDecls.insert(PDecl->getCanonicalDecl()); in HandleTranslationUnit()
[all …]
/external/clang/include/clang/AST/
DExprObjC.h693 const ObjCPropertyDecl *PDecl = getExplicitProperty();
694 if (const ObjCMethodDecl *Getter = PDecl->getGetterMethodDecl())
697 ResultType = PDecl->getType();
713 if (ObjCPropertyDecl *PDecl = getExplicitProperty())
714 if (const ObjCMethodDecl *Setter = PDecl->getSetterMethodDecl()) {
/external/clang/include/clang/Sema/
DSema.h2822 const ObjCPropertyDecl *&PDecl) const;