Lines Matching defs:protocols

54   // We ignore protocols here.  Should we?  What about Class?
1098 // Check then save referenced protocols.
1114 /// of the protocols.
1280 /// Check then save referenced protocols.
1300 for (auto *PI : PDecl->protocols())
1308 /// FindProtocolDeclaration - This routine looks up protocols and
1360 // Objective-C protocols or valid Objective-C type arguments.
1371 // If we're allowed to find protocols and we have a protocol, accept it.
1432 SmallVectorImpl<Decl *> &protocols, SourceLocation &protocolRAngleLoc,
1439 assert(numProtocolsResolved == identifiers.size() && "Unresolved protocols");
1462 for (unsigned i = 0, n = protocols.size(); i != n; ++i) {
1464 = reinterpret_cast<ObjCProtocolDecl *&>(protocols[i]);
1507 // All of the protocols listed also have type names, and at least
1515 for (auto *proto : protocols) {
1532 assert(protocols.size() == identifierLocs.size());
1535 // Attempt to resolve all of the identifiers as protocols.
1538 protocols.push_back(proto);
1543 // If all of the names were protocols, these were protocol qualifiers.
1628 // We did not resolve these as protocols.
1629 protocols.clear();
1660 if (protocols[i] || typeDecls[i]) {
1661 // If we haven't figured out whether we want types or protocols
1666 if (protocols[i] && typeDecls[i])
1670 // toward types or protocols.
1671 lookupKind = protocols[i] ? Sema::LookupObjCProtocolName
1676 // If we want protocols and we have a protocol, there's nothing
1678 if (lookupKind == Sema::LookupObjCProtocolName && protocols[i])
1686 // We have a conflict: some names refer to protocols and others
1690 protocols[i] != nullptr);
1692 protocols.clear();
1709 protocols[i] = proto;
1744 protocols.clear();
1749 // If all of the names were (corrected to) protocols, these were
1888 // Process the attributes before looking at protocols to ensure that the
2253 // matches what we do with protocols.
2281 /// in cases where protocols are involved.
2318 // implement all of the protocols in B. It may not be a qualified class.
2690 for (const auto *PI : PDecl->protocols())
2694 /// Recursively populates a set with all conformed protocols in a class
2728 // Note: we could generalize this logic for all protocols, and merely
2730 // specially marked protocols. This may be a good optimization. This
2732 // protocols for now for controlled evaluation.
2785 // or in one of their protocols, no need to issue the warning.
2825 // Check on this protocols's referenced protocols, recursively.
2826 for (auto *PI : PDecl->protocols())
2899 // Also, check for methods declared in protocols inherited by
2901 for (auto *PI : PD->protocols())
3047 // For extended class, unimplemented methods in its protocols will
3050 for (auto *P : C->protocols())
3977 // Check on this protocols's referenced protocols, recursively.
3979 PDecl->protocols());
4086 C->protocols());
4352 // referenced ("parent") protocols.
4358 // the main class and from protocols the category references.
4391 // - any referenced protocols.
4402 void search(const ObjCProtocolList &protocols) {
4403 for (const auto *Proto : protocols)
4458 // its protocols, or its categories' protocols; we will keep that info
4704 // - we absolutely do not need to walk protocols, because
4974 for (auto &P : C->protocols())