clang
13.0.0git
|
This class wraps the list of protocol qualifiers. More...
#include "clang/AST/Type.h"
Public Types | |
using | qual_iterator = ObjCProtocolDecl *const * |
using | qual_range = llvm::iterator_range< qual_iterator > |
Public Member Functions | |
qual_range | quals () const |
qual_iterator | qual_begin () const |
qual_iterator | qual_end () const |
bool | qual_empty () const |
unsigned | getNumProtocols () const |
Return the number of qualifying protocols in this type, or 0 if there are none. More... | |
ObjCProtocolDecl * | getProtocol (unsigned I) const |
Fetch a protocol by index. More... | |
ArrayRef< ObjCProtocolDecl * > | getProtocols () const |
Retrieve all of the protocol qualifiers. More... | |
Protected Member Functions | |
ObjCProtocolQualifiers ()=default | |
ObjCProtocolDecl *const * | getProtocolStorage () const |
ObjCProtocolDecl ** | getProtocolStorage () |
void | setNumProtocols (unsigned N) |
void | initialize (ArrayRef< ObjCProtocolDecl * > protocols) |
This class wraps the list of protocol qualifiers.
For types that can take ObjC protocol qualifers, they can subclass this class.
using clang::ObjCProtocolQualifiers< T >::qual_iterator = ObjCProtocolDecl * const * |
using clang::ObjCProtocolQualifiers< T >::qual_range = llvm::iterator_range<qual_iterator> |
|
protecteddefault |
|
inline |
Return the number of qualifying protocols in this type, or 0 if there are none.
Definition at line 5718 of file Type.h.
Referenced by clang::ASTContext::canAssignObjCInterfaces(), clang::ObjCTypeParamTypeLoc::getNumProtocols(), clang::ObjCObjectTypeLoc::getNumProtocols(), clang::ObjCObjectPointerType::getNumProtocols(), clang::ObjCProtocolQualifiers< ObjCObjectType >::getProtocol(), clang::ObjCProtocolQualifiers< ObjCObjectType >::getProtocols(), clang::ObjCProtocolQualifiers< ObjCObjectType >::initialize(), clang::ObjCProtocolQualifiers< ObjCObjectType >::qual_empty(), and clang::ObjCProtocolQualifiers< ObjCObjectType >::qual_end().
|
inline |
Fetch a protocol by index.
Definition at line 5723 of file Type.h.
Referenced by clang::ObjCObjectPointerType::getProtocol().
|
inline |
|
inlineprotected |
|
inlineprotected |
Definition at line 5685 of file Type.h.
Referenced by clang::ObjCProtocolQualifiers< ObjCObjectType >::getProtocolStorage(), clang::ObjCProtocolQualifiers< ObjCObjectType >::initialize(), and clang::ObjCProtocolQualifiers< ObjCObjectType >::qual_begin().
|
inlineprotected |
|
inline |
Definition at line 5711 of file Type.h.
Referenced by clang::ASTContext::applyObjCProtocolQualifiers(), clang::ObjCTypeParamTypeLoc::getProtocol(), clang::ObjCObjectTypeLoc::getProtocol(), clang::ObjCProtocolQualifiers< ObjCObjectType >::getProtocol(), clang::ObjCProtocolQualifiers< ObjCObjectType >::getProtocols(), clang::ObjCObjectPointerType::qual_begin(), clang::ObjCProtocolQualifiers< ObjCObjectType >::qual_end(), and clang::ObjCProtocolQualifiers< ObjCObjectType >::quals().
|
inline |
Definition at line 5714 of file Type.h.
Referenced by clang::Sema::CheckObjCForCollectionOperand(), and clang::ObjCObjectPointerType::qual_empty().
|
inline |
Definition at line 5712 of file Type.h.
Referenced by clang::ASTContext::applyObjCProtocolQualifiers(), clang::ObjCObjectPointerType::qual_end(), and clang::ObjCProtocolQualifiers< ObjCObjectType >::quals().
|
inline |
Definition at line 5710 of file Type.h.
Referenced by clang::ASTContext::canAssignObjCInterfaces(), getIntersectionOfProtocols(), clang::Sema::LookupMethodInObjectType(), and clang::ASTNodeImporter::VisitObjCObjectType().
|
inlineprotected |
Definition at line 5693 of file Type.h.
Referenced by clang::ObjCProtocolQualifiers< ObjCObjectType >::initialize().