clang 18.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. | |
ObjCProtocolDecl * | getProtocol (unsigned I) const |
Fetch a protocol by index. | |
ArrayRef< ObjCProtocolDecl * > | getProtocols () const |
Retrieve all of the protocol qualifiers. | |
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 6047 of file Type.h.
Referenced by clang::ASTContext::canAssignObjCInterfaces(), clang::ObjCObjectPointerType::getNumProtocols(), clang::ObjCTypeParamTypeLoc::getNumProtocols(), clang::ObjCObjectTypeLoc::getNumProtocols(), clang::ObjCProtocolQualifiers< T >::getProtocol(), clang::ObjCProtocolQualifiers< T >::getProtocols(), clang::ObjCProtocolQualifiers< T >::initialize(), clang::ObjCProtocolQualifiers< T >::qual_empty(), and clang::ObjCProtocolQualifiers< T >::qual_end().
|
inline |
Fetch a protocol by index.
Definition at line 6052 of file Type.h.
References clang::ObjCProtocolQualifiers< T >::getNumProtocols(), and clang::ObjCProtocolQualifiers< T >::qual_begin().
Referenced by clang::ObjCObjectPointerType::getProtocol().
|
inline |
Retrieve all of the protocol qualifiers.
Definition at line 6058 of file Type.h.
References clang::ObjCProtocolQualifiers< T >::getNumProtocols(), and clang::ObjCProtocolQualifiers< T >::qual_begin().
|
inlineprotected |
|
inlineprotected |
Definition at line 6014 of file Type.h.
References clang::ObjCProtocolQualifiers< T >::getProtocolStorage().
Referenced by clang::ObjCProtocolQualifiers< T >::getProtocolStorage(), clang::ObjCProtocolQualifiers< T >::initialize(), and clang::ObjCProtocolQualifiers< T >::qual_begin().
|
inlineprotected |
Definition at line 6026 of file Type.h.
References clang::ObjCProtocolQualifiers< T >::getNumProtocols(), clang::ObjCProtocolQualifiers< T >::getProtocolStorage(), memcpy(), and clang::ObjCProtocolQualifiers< T >::setNumProtocols().
|
inline |
Definition at line 6040 of file Type.h.
References clang::ObjCProtocolQualifiers< T >::getProtocolStorage().
Referenced by clang::ASTContext::applyObjCProtocolQualifiers(), clang::ObjCProtocolQualifiers< T >::getProtocol(), clang::ObjCTypeParamTypeLoc::getProtocol(), clang::ObjCObjectTypeLoc::getProtocol(), clang::ObjCProtocolQualifiers< T >::getProtocols(), clang::ObjCObjectPointerType::qual_begin(), clang::ObjCProtocolQualifiers< T >::qual_end(), and clang::ObjCProtocolQualifiers< T >::quals().
|
inline |
Definition at line 6043 of file Type.h.
References clang::ObjCProtocolQualifiers< T >::getNumProtocols().
Referenced by clang::Sema::CheckObjCForCollectionOperand(), and clang::ObjCObjectPointerType::qual_empty().
|
inline |
Definition at line 6041 of file Type.h.
References clang::ObjCProtocolQualifiers< T >::getNumProtocols(), and clang::ObjCProtocolQualifiers< T >::qual_begin().
Referenced by clang::ASTContext::applyObjCProtocolQualifiers(), clang::ObjCObjectPointerType::qual_end(), and clang::ObjCProtocolQualifiers< T >::quals().
|
inline |
Definition at line 6039 of file Type.h.
References clang::ObjCProtocolQualifiers< T >::qual_begin(), and clang::ObjCProtocolQualifiers< T >::qual_end().
Referenced by clang::ASTContext::canAssignObjCInterfaces(), getIntersectionOfProtocols(), and clang::Sema::LookupMethodInObjectType().
|
inlineprotected |
Definition at line 6022 of file Type.h.
Referenced by clang::ObjCProtocolQualifiers< T >::initialize().