/external/clang/lib/AST/ |
H A D | DeclPrinter.cpp | 1220 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { argument 1221 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) 1223 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) 1226 QualType T = PDecl->getType(); 1229 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { 1232 if (PDecl->getPropertyAttributes() & 1238 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_getter) { 1240 PDecl->getGetterName().print(Out); 1243 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter) { 1245 PDecl [all...] |
H A D | DeclObjC.cpp | 1772 ObjCProtocolDecl *PDecl = this; local 1775 return PDecl; 1778 if ((PDecl = I->lookupProtocolNamed(Name))) 1779 return PDecl; 1822 if (const ObjCProtocolDecl *PDecl = getDefinition()) { 1823 for (auto *Prop : PDecl->properties()) { 1829 for (const auto *PI : PDecl->protocols()) 1838 if (const ObjCProtocolDecl *PDecl = getDefinition()) { 1840 for (auto *Prop : PDecl->properties()) { 1844 PM[PDecl] [all...] |
/external/clang/lib/Sema/ |
H A D | SemaObjCProperty.cpp | 510 ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc, local 519 ProcessPropertyDecl(PDecl); 520 return PDecl; 523 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { 533 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); 540 diag::err_type_mismatch_continuation_class) << PDecl->getType(); 548 checkAtomicPropertyMismatch(*this, PIDecl, PDecl, true); 551 ProcessPropertyDecl(PDecl); 552 return PDecl; 610 ObjCPropertyDecl *PDecl local 2278 CheckObjCPropertyAttributes(Decl *PDecl, SourceLocation Loc, unsigned &Attributes, bool propertyInPrimaryClass) argument [all...] |
H A D | SemaExprObjC.cpp | 1223 ObjCProtocolDecl* PDecl = LookupProtocol(ProtocolId, ProtoIdLoc); local 1224 if (!PDecl) { 1228 if (PDecl->hasDefinition()) 1229 PDecl = PDecl->getDefinition(); 1235 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); 1859 if (const ObjCPropertyDecl *PDecl = Setter->findPropertyDecl()) { 1862 if (!(PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter)) 1865 << MemberName << QualType(OPT, 0) << PDecl->getName() 1866 << FixItHint::CreateReplacement(MemberLoc, PDecl [all...] |
H A D | SemaDeclObjC.cpp | 1104 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), 1106 if (PDecl->getIdentifier() == PName) { 1112 if (!PDecl->hasDefinition()) 1116 PDecl->getLocation(), PDecl->getReferencedProtocols())) 1137 ObjCProtocolDecl *PDecl = nullptr; local 1147 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, 1150 PDecl->startDefinition(); 1162 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, 1166 PushOnScopeChains(PDecl, TUScop 1189 NestedProtocolHasNoDefinition(ObjCProtocolDecl *PDecl, ObjCProtocolDecl *&UndefinedProtocol) argument 1212 ObjCProtocolDecl *PDecl = LookupProtocol(Pair.first, Pair.second); local 1683 ObjCProtocolDecl *PDecl local 2540 findProtocolsWithExplicitImpls(const ObjCProtocolDecl *PDecl, ProtocolNameSet &PNS) argument 2564 CheckProtocolMethodDefs(Sema &S, SourceLocation ImpLoc, ObjCProtocolDecl *PDecl, bool& IncompleteImpl, const Sema::SelectorSet &InsMap, const Sema::SelectorSet &ClsMap, ObjCContainerDecl *CDecl, LazyProtocolNameSet &ProtocolsExplictImpl) argument 4615 const ObjCPropertyDecl *PDecl; local [all...] |
H A D | SemaExpr.cpp | 7344 ObjCProtocolDecl *PDecl = OPE->getProtocol(); local 7345 if (PDecl && !PDecl->hasDefinition()) { 7346 Diag(PRE->getExprLoc(), diag::warn_atprotocol_protocol) << PDecl->getName(); 7347 Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl; 11867 const ObjCProtocolDecl *PDecl = nullptr; local 11954 PDecl = srcProto; 11965 PDecl = dstProto; 12038 PDecl [all...] |
/external/clang/lib/ARCMigrate/ |
H A D | ObjCMT.cpp | 607 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) 608 for (const auto *Property : PDecl->properties()) { 635 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { 636 if (PDecl->meth_begin() == PDecl->meth_end()) 638 for (const auto *MD : PDecl->methods()) { 877 ObjCProtocolDecl *PDecl = ConformingProtocols[i1]; local 878 if (PDecl == TargetPDecl) 880 if (PDecl->lookupProtocolNamed( 1866 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 5097 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 5900 Write_ProtocolExprReferencedMetadata(ASTContext *Context, ObjCProtocolDecl *PDecl, std::string &Result) argument 6928 RewriteObjCProtocolMetaData(ObjCProtocolDecl *PDecl, std::string &Result) argument [all...] |