clang 19.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::ObjCTypeParamList Class Referencefinal

Stores a list of Objective-C type parameters for a parameterized class or a category/extension thereof. More...

#include "clang/AST/DeclObjC.h"

Inheritance diagram for clang::ObjCTypeParamList:
Inheritance graph
[legend]

Public Types

using iterator = ObjCTypeParamDecl **
 Iterate through the type parameters in the list.
 
using const_iterator = ObjCTypeParamDecl *const *
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
unsigned size () const
 Determine the number of type parameters in this list.
 
const_iterator begin () const
 
const_iterator end () const
 
ObjCTypeParamDeclfront () const
 
ObjCTypeParamDeclback () const
 
SourceLocation getLAngleLoc () const
 
SourceLocation getRAngleLoc () const
 
SourceRange getSourceRange () const
 
void gatherDefaultTypeArgs (SmallVectorImpl< QualType > &typeArgs) const
 Gather the default set of type arguments to be substituted for these type parameters when dealing with an unspecialized type.
 

Static Public Member Functions

static ObjCTypeParamListcreate (ASTContext &ctx, SourceLocation lAngleLoc, ArrayRef< ObjCTypeParamDecl * > typeParams, SourceLocation rAngleLoc)
 Create a new Objective-C type parameter list.
 

Public Attributes

friend TrailingObjects
 

Detailed Description

Stores a list of Objective-C type parameters for a parameterized class or a category/extension thereof.

@interface NSArray<T> // stores the <T>
@end
const FunctionProtoType * T

Definition at line 657 of file DeclObjC.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 688 of file DeclObjC.h.

◆ iterator

Iterate through the type parameters in the list.

Definition at line 678 of file DeclObjC.h.

Member Function Documentation

◆ back()

ObjCTypeParamDecl * clang::ObjCTypeParamList::back ( ) const
inline

Definition at line 703 of file DeclObjC.h.

References end(), and size().

Referenced by checkTypeParamListConsistency().

◆ begin() [1/2]

iterator clang::ObjCTypeParamList::begin ( )
inline

◆ begin() [2/2]

const_iterator clang::ObjCTypeParamList::begin ( ) const
inline

Definition at line 690 of file DeclObjC.h.

◆ create()

ObjCTypeParamList * ObjCTypeParamList::create ( ASTContext ctx,
SourceLocation  lAngleLoc,
ArrayRef< ObjCTypeParamDecl * >  typeParams,
SourceLocation  rAngleLoc 
)
static

◆ end() [1/2]

iterator clang::ObjCTypeParamList::end ( )
inline

Definition at line 682 of file DeclObjC.h.

References begin(), and size().

Referenced by back().

◆ end() [2/2]

const_iterator clang::ObjCTypeParamList::end ( ) const
inline

Definition at line 694 of file DeclObjC.h.

References begin(), and size().

◆ front()

ObjCTypeParamDecl * clang::ObjCTypeParamList::front ( ) const
inline

Definition at line 698 of file DeclObjC.h.

References begin(), and size().

◆ gatherDefaultTypeArgs()

void ObjCTypeParamList::gatherDefaultTypeArgs ( SmallVectorImpl< QualType > &  typeArgs) const

Gather the default set of type arguments to be substituted for these type parameters when dealing with an unspecialized type.

Definition at line 1530 of file DeclObjC.cpp.

References size().

◆ getLAngleLoc()

SourceLocation clang::ObjCTypeParamList::getLAngleLoc ( ) const
inline

◆ getRAngleLoc()

SourceLocation clang::ObjCTypeParamList::getRAngleLoc ( ) const
inline

◆ getSourceRange()

SourceRange clang::ObjCTypeParamList::getSourceRange ( ) const
inline

◆ size()

unsigned clang::ObjCTypeParamList::size ( ) const
inline

Member Data Documentation

◆ TrailingObjects

friend clang::ObjCTypeParamList::TrailingObjects

Definition at line 669 of file DeclObjC.h.


The documentation for this class was generated from the following files: