clang 20.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 7056 of file Type.h.
References clang::T.
Referenced by clang::ASTContext::canAssignObjCInterfaces(), clang::ObjCTypeParamTypeLoc::getNumProtocols(), and clang::ObjCObjectTypeLoc::getNumProtocols().
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
Definition at line 7049 of file Type.h.
Referenced by clang::ASTContext::applyObjCProtocolQualifiers(), clang::ObjCTypeParamTypeLoc::getProtocol(), and clang::ObjCObjectTypeLoc::getProtocol().
|
inline |
Definition at line 7052 of file Type.h.
Referenced by clang::SemaObjC::CheckObjCForCollectionOperand().
|
inline |
Definition at line 7050 of file Type.h.
Referenced by clang::ASTContext::applyObjCProtocolQualifiers().
|
inline |
Definition at line 7048 of file Type.h.
Referenced by clang::ASTContext::canAssignObjCInterfaces(), getIntersectionOfProtocols(), and clang::SemaObjC::LookupMethodInObjectType().
|
inlineprotected |