Lines Matching defs:PDecl
986 void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) {
987 SourceLocation LocStart = PDecl->getBeginLoc();
988 assert(PDecl->isThisDeclarationADefinition());
993 for (auto *I : PDecl->instance_methods())
995 for (auto *I : PDecl->class_methods())
997 for (auto *I : PDecl->instance_properties())
1001 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin();
1123 for (const auto *PDecl : OMD->parameters()) {
1125 if (PDecl->getType()->isObjCQualifiedIdType()) {
1127 ResultStr += PDecl->getNameAsString();
1129 std::string Name = PDecl->getNameAsString();
1130 QualType QT = PDecl->getType();
5055 ObjCProtocolDecl *PDecl, StringRef prefix,
5060 if (!objc_protocol_methods && PDecl->hasDefinition()) {
5074 if (ObjCSynthesizedProtocols.count(PDecl->getCanonicalDecl()))
5077 if (ObjCProtocolDecl *Def = PDecl->getDefinition())
5078 PDecl = Def;
5080 if (PDecl->instmeth_begin() != PDecl->instmeth_end()) {
5081 unsigned NumMethods = std::distance(PDecl->instmeth_begin(),
5082 PDecl->instmeth_end());
5093 Result += PDecl->getNameAsString();
5099 I = PDecl->instmeth_begin(), E = PDecl->instmeth_end();
5101 if (I == PDecl->instmeth_begin())
5115 unsigned NumMethods = std::distance(PDecl->classmeth_begin(),
5116 PDecl->classmeth_end());
5128 Result += PDecl->getNameAsString();
5136 I = PDecl->classmeth_begin(), E = PDecl->classmeth_end();
5138 if (I == PDecl->classmeth_begin())
5175 Result += PDecl->getNameAsString();
5178 Result += PDecl->getNameAsString();
5180 if (PDecl->instmeth_begin() != PDecl->instmeth_end()) {
5182 Result += PDecl->getNameAsString();
5187 if (PDecl->classmeth_begin() != PDecl->classmeth_end()) {
5189 Result += PDecl->getNameAsString();
5197 if (!ObjCSynthesizedProtocols.insert(PDecl->getCanonicalDecl()).second)