Home | History | Annotate | Download | only in Sema

Lines Matching refs:Protocols

51   // We ignore protocols here.  Should we?  What about Class?
1015 // Check then save referenced protocols.
1030 /// of the protocols.
1178 /// Check then save referenced protocols.
1196 for (auto *PI : PDecl->protocols())
1204 /// FindProtocolDeclaration - This routine looks up protocols and
1206 /// protocol declarations in its 'Protocols' argument.
1210 SmallVectorImpl<Decl *> &Protocols) {
1249 Protocols.push_back(PDecl);
1255 // Objective-C protocols or valid Objective-C type arguments.
1265 // If we're allowed to find protocols and we have a protocol, accept it.
1317 SmallVectorImpl<Decl *> &protocols,
1324 assert(numProtocolsResolved == identifiers.size() && "Unresolved protocols");
1347 for (unsigned i = 0, n = protocols.size(); i != n; ++i) {
1349 = reinterpret_cast<ObjCProtocolDecl *&>(protocols[i]);
1391 // All of the protocols listed also have type names, and at least
1399 for (auto proto : protocols) {
1416 assert(protocols.size() == identifierLocs.size());
1419 // Attempt to resolve all of the identifiers as protocols.
1422 protocols.push_back(proto);
1427 // If all of the names were protocols, these were protocol qualifiers.
1513 // We did not resolve these as protocols.
1514 protocols.clear();
1545 if (protocols[i] || typeDecls[i]) {
1546 // If we haven't figured out whether we want types or protocols
1551 if (protocols[i] && typeDecls[i])
1555 // toward types or protocols.
1556 lookupKind = protocols[i] ? LookupObjCProtocolName
1561 // If we want protocols and we have a protocol, there's nothing
1563 if (lookupKind == LookupObjCProtocolName && protocols[i])
1571 // We have a conflict: some names refer to protocols and others
1574 << (protocols[i] != nullptr)
1579 protocols.clear();
1598 protocols[i] = proto;
1632 protocols.clear();
1637 // If all of the names were (corrected to) protocols, these were
1783 // Protocols in the class extension belong to the class.
2108 // matches what we do with protocols.
2126 /// in cases where protocols are involved.
2163 // implement all of the protocols in B. It may not be a qualified class.
2544 for (const auto *PI : PDecl->protocols())
2548 /// Recursively populates a set with all conformed protocols in a class
2586 // Note: we could generalize this logic for all protocols, and merely
2588 // specially marked protocols. This may be a good optimization. This
2590 // protocols for now for controlled evaluation.
2644 // or in one of their protocols, no need to issue the warning.
2687 // Check on this protocols's referenced protocols, recursively.
2688 for (auto *PI : PDecl->protocols())
2756 // Also, check for methods declared in protocols inherited by
2758 for (auto *PI : PD->protocols())
2904 // For extended class, unimplemented methods in its protocols will
2907 for (auto *P : C->protocols())
3868 // referenced ("parent") protocols.
3874 // the main class and from protocols the category references.
3907 // - any referenced protocols.
3918 void search(const ObjCProtocolList &protocols) {
3919 for (ObjCProtocolList::iterator i = protocols.begin(), e = protocols.end();
3953 // its protocols, or its categories' protocols; we will keep that info