Lines Matching refs:PDecl
984 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()
1127 std::string Name = PDecl->getNameAsString(); in RewriteObjCMethodDecl()
1128 QualType QT = PDecl->getType(); in RewriteObjCMethodDecl()
5113 ObjCProtocolDecl *PDecl, StringRef prefix, in RewriteObjCProtocolMetaData() argument
5118 if (!objc_protocol_methods && PDecl->hasDefinition()) { in RewriteObjCProtocolMetaData()
5132 if (ObjCSynthesizedProtocols.count(PDecl->getCanonicalDecl())) in RewriteObjCProtocolMetaData()
5135 if (ObjCProtocolDecl *Def = PDecl->getDefinition()) in RewriteObjCProtocolMetaData()
5136 PDecl = Def; in RewriteObjCProtocolMetaData()
5138 if (PDecl->instmeth_begin() != PDecl->instmeth_end()) { in RewriteObjCProtocolMetaData()
5139 unsigned NumMethods = std::distance(PDecl->instmeth_begin(), in RewriteObjCProtocolMetaData()
5140 PDecl->instmeth_end()); in RewriteObjCProtocolMetaData()
5151 Result += PDecl->getNameAsString(); in RewriteObjCProtocolMetaData()
5157 I = PDecl->instmeth_begin(), E = PDecl->instmeth_end(); in RewriteObjCProtocolMetaData()
5159 if (I == PDecl->instmeth_begin()) in RewriteObjCProtocolMetaData()
5174 unsigned NumMethods = std::distance(PDecl->classmeth_begin(), in RewriteObjCProtocolMetaData()
5175 PDecl->classmeth_end()); in RewriteObjCProtocolMetaData()
5187 Result += PDecl->getNameAsString(); in RewriteObjCProtocolMetaData()
5195 I = PDecl->classmeth_begin(), E = PDecl->classmeth_end(); in RewriteObjCProtocolMetaData()
5197 if (I == PDecl->classmeth_begin()) in RewriteObjCProtocolMetaData()
5235 Result += PDecl->getNameAsString(); in RewriteObjCProtocolMetaData()
5238 Result += PDecl->getNameAsString(); in RewriteObjCProtocolMetaData()
5240 if (PDecl->instmeth_begin() != PDecl->instmeth_end()) { in RewriteObjCProtocolMetaData()
5242 Result += PDecl->getNameAsString(); in RewriteObjCProtocolMetaData()
5247 if (PDecl->classmeth_begin() != PDecl->classmeth_end()) { in RewriteObjCProtocolMetaData()
5249 Result += PDecl->getNameAsString(); in RewriteObjCProtocolMetaData()
5257 if (!ObjCSynthesizedProtocols.insert(PDecl->getCanonicalDecl()).second) in RewriteObjCProtocolMetaData()