/external/clang/lib/AST/ |
H A D | DeclPrinter.cpp | 1098 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { argument 1099 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) 1101 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) 1105 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { 1108 if (PDecl->getPropertyAttributes() & 1114 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_getter) { 1116 PDecl->getGetterName().print(Out); 1119 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter) { 1121 PDecl->getSetterName().print(Out); 1125 if (PDecl [all...] |
H A D | DeclObjC.cpp | 1553 ObjCProtocolDecl *PDecl = this; local 1556 return PDecl; 1559 if ((PDecl = I->lookupProtocolNamed(Name))) 1560 return PDecl; 1603 if (const ObjCProtocolDecl *PDecl = getDefinition()) { 1604 for (auto *Prop : PDecl->properties()) { 1610 for (const auto *PI : PDecl->protocols()) 1619 if (const ObjCProtocolDecl *PDecl = getDefinition()) { 1621 for (auto *Prop : PDecl->properties()) { 1625 PM[PDecl] [all...] |
/external/clang/include/clang/AST/ |
H A D | ExprObjC.h | 693 const ObjCPropertyDecl *PDecl = getExplicitProperty(); local 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/lib/Sema/ |
H A D | SemaObjCProperty.cpp | 349 ObjCPropertyDecl *PDecl = local 352 PDecl->setPropertyAttributesAsWritten( 355 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readonly); 357 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_readwrite); 359 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_nonatomic); 361 PDecl->setPropertyAttributes(ObjCPropertyDecl::OBJC_PR_atomic); 363 PDecl->setGetterName(GetterSel); 364 PDecl->setSetterName(SetterSel); 365 ProcessDeclAttributes(S, PDecl, FD.D); 366 DC->addDecl(PDecl); 565 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, local 2116 CheckObjCPropertyAttributes(Decl *PDecl, SourceLocation Loc, unsigned &Attributes, bool propertyInPrimaryClass) argument [all...] |
H A D | SemaDeclObjC.cpp | 679 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), 681 if (PDecl->getIdentifier() == PName) { 687 if (!PDecl->hasDefinition()) 691 PDecl->getLocation(), PDecl->getReferencedProtocols())) 712 ObjCProtocolDecl *PDecl = nullptr; local 722 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, 725 PDecl->startDefinition(); 737 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, 741 PushOnScopeChains(PDecl, TUScop 762 NestedProtocolHasNoDefinition(ObjCProtocolDecl *PDecl, ObjCProtocolDecl *&UndefinedProtocol) argument 786 ObjCProtocolDecl *PDecl = LookupProtocol(ProtocolId[i].first, local 863 ObjCProtocolDecl *PDecl local 1649 findProtocolsWithExplicitImpls(const ObjCProtocolDecl *PDecl, ProtocolNameSet &PNS) argument 1673 CheckProtocolMethodDefs(Sema &S, SourceLocation ImpLoc, ObjCProtocolDecl *PDecl, bool& IncompleteImpl, const Sema::SelectorSet &InsMap, const Sema::SelectorSet &ClsMap, ObjCContainerDecl *CDecl, LazyProtocolNameSet &ProtocolsExplictImpl) argument 3586 const ObjCPropertyDecl *PDecl; local [all...] |
H A D | SemaExprObjC.cpp | 1106 ObjCProtocolDecl* PDecl = LookupProtocol(ProtocolId, ProtoIdLoc); local 1107 if (!PDecl) { 1111 if (PDecl->hasDefinition()) 1112 PDecl = PDecl->getDefinition(); 1118 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); 1612 if (const ObjCPropertyDecl *PDecl = Setter->findPropertyDecl()) { 1615 if (!(PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter)) 1618 << MemberName << QualType(OPT, 0) << PDecl->getName() 1619 << FixItHint::CreateReplacement(MemberLoc, PDecl [all...] |
H A D | SemaExpr.cpp | 7157 ObjCProtocolDecl *PDecl = OPE->getProtocol(); local 7158 if (PDecl && !PDecl->hasDefinition()) { 7159 Diag(PRE->getExprLoc(), diag::warn_atprotocol_protocol) << PDecl->getName(); 7160 Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl; 11541 const ObjCProtocolDecl *PDecl = nullptr; local 11628 PDecl = srcProto; 11639 PDecl = dstProto; 11707 PDecl [all...] |
/external/clang/lib/ARCMigrate/ |
H A D | ObjCMT.cpp | 617 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) 618 for (const auto *Property : PDecl->properties()) { 645 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { 646 if (PDecl->meth_begin() == PDecl->meth_end()) 648 for (const auto *MD : PDecl->methods()) { 889 ObjCProtocolDecl *PDecl = ConformingProtocols[i1]; local 890 if (PDecl == TargetPDecl) 892 if (PDecl->lookupProtocolNamed( 1882 else if (ObjCProtocolDecl *PDecl [all...] |
/external/clang/lib/Frontend/Rewrite/ |
H A D | RewriteObjC.cpp | 984 void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { argument 985 SourceLocation LocStart = PDecl->getLocStart(); 986 assert(PDecl->isThisDeclarationADefinition()); 991 for (auto *I : PDecl->instance_methods()) 993 for (auto *I : PDecl->class_methods()) 995 for (auto *I : PDecl->properties()) 999 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); 1121 for (const auto *PDecl : OMD->params()) { 1123 if (PDecl->getType()->isObjCQualifiedIdType()) { 1125 ResultStr += PDecl 5112 RewriteObjCProtocolMetaData( ObjCProtocolDecl *PDecl, StringRef prefix, StringRef ClassName, std::string &Result) argument [all...] |
H A D | RewriteModernObjC.cpp | 1163 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { argument 1164 SourceLocation LocStart = PDecl->getLocStart(); 1165 assert(PDecl->isThisDeclarationADefinition()); 1170 for (auto *I : PDecl->instance_methods()) 1172 for (auto *I : PDecl->class_methods()) 1174 for (auto *I : PDecl->properties()) 1178 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); 1316 for (const auto *PDecl : OMD->params()) { 1318 if (PDecl->getType()->isObjCQualifiedIdType()) { 1320 ResultStr += PDecl 5923 Write_ProtocolExprReferencedMetadata(ASTContext *Context, ObjCProtocolDecl *PDecl, std::string &Result) argument 6951 RewriteObjCProtocolMetaData(ObjCProtocolDecl *PDecl, std::string &Result) argument [all...] |