Lines Matching refs:PDecl
1175 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) {
1176 SourceLocation LocStart = PDecl->getLocStart();
1177 assert(PDecl->isThisDeclarationADefinition());
1182 for (auto *I : PDecl->instance_methods())
1184 for (auto *I : PDecl->class_methods())
1186 for (auto *I : PDecl->properties())
1190 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin();
1328 for (const auto *PDecl : OMD->params()) {
1330 if (PDecl->getType()->isObjCQualifiedIdType()) {
1332 ResultStr += PDecl->getNameAsString();
1334 std::string Name = PDecl->getNameAsString();
1335 QualType QT = PDecl->getType();
5950 ObjCProtocolDecl *PDecl,
5957 Result += PDecl->getNameAsString();
5959 Result += "_OBJC_PROTOCOL_"; Result += PDecl->getNameAsString();
6978 void RewriteModernObjC::RewriteObjCProtocolMetaData(ObjCProtocolDecl *PDecl,
6982 if (ObjCSynthesizedProtocols.count(PDecl->getCanonicalDecl()))
6986 if (ObjCProtocolDecl *Def = PDecl->getDefinition())
6987 PDecl = Def;
6990 for (auto *I : PDecl->protocols())
6996 for (auto *MD : PDecl->instance_methods()) {
7004 for (auto *MD : PDecl->class_methods()) {
7024 PDecl->getNameAsString());
7026 SmallVector<ObjCProtocolDecl *, 8> SuperProtocols(PDecl->protocols());
7029 PDecl->getNameAsString());
7033 PDecl->getNameAsString(), false);
7037 PDecl->getNameAsString(), false);
7041 PDecl->getNameAsString(), false);
7045 PDecl->getNameAsString(), false);
7048 SmallVector<ObjCPropertyDecl *, 8> ProtocolProperties(PDecl->properties());
7052 PDecl->getNameAsString());
7059 Result += PDecl->getNameAsString();
7062 Result += "\t\""; Result += PDecl->getNameAsString(); Result += "\",\n";
7065 Result += PDecl->getNameAsString(); Result += ",\n";
7071 Result += PDecl->getNameAsString(); Result += ",\n";
7078 Result += PDecl->getNameAsString(); Result += ",\n";
7085 Result += PDecl->getNameAsString(); Result += ",\n";
7092 Result += PDecl->getNameAsString(); Result += ",\n";
7099 Result += PDecl->getNameAsString(); Result += ",\n";
7109 Result += PDecl->getNameAsString();
7118 Result += "_OBJC_LABEL_PROTOCOL_$_"; Result += PDecl->getNameAsString();
7119 Result += " = &_OBJC_PROTOCOL_"; Result += PDecl->getNameAsString();
7123 if (!ObjCSynthesizedProtocols.insert(PDecl->getCanonicalDecl()))