clang  3.7.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
clang::ObjCTypeParamList Class Reference

#include <DeclObjC.h>

Collaboration diagram for clang::ObjCTypeParamList:
[legend]

Public Types

typedef ObjCTypeParamDecl ** iterator
 Iterate through the type parameters in the list. More...
 
typedef ObjCTypeParamDecl *const * const_iterator
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
unsigned size () const
 Determine the number of type parameters in this list. More...
 
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
 

Static Public Member Functions

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

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

Definition at line 615 of file DeclObjC.h.

Member Typedef Documentation

Definition at line 655 of file DeclObjC.h.

Iterate through the type parameters in the list.

Definition at line 645 of file DeclObjC.h.

Member Function Documentation

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

Definition at line 670 of file DeclObjC.h.

References end(), and size().

Referenced by checkTypeParamListConsistency().

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

Definition at line 657 of file DeclObjC.h.

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

Definition at line 649 of file DeclObjC.h.

References begin(), and size().

Referenced by back().

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

Definition at line 661 of file DeclObjC.h.

References begin(), and size().

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

Definition at line 665 of file DeclObjC.h.

References begin(), and size().

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 1285 of file DeclObjC.cpp.

References size().

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

Definition at line 678 of file DeclObjC.h.

References Brackets, and clang::SourceLocation::getFromRawEncoding().

Referenced by getSourceRange().

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

Member Data Documentation

ObjCTypeParamDecl* clang::ObjCTypeParamList::AlignmentHack

Definition at line 627 of file DeclObjC.h.

PODSourceRange clang::ObjCTypeParamList::Brackets

Location of the left and right angle brackets.

Definition at line 624 of file DeclObjC.h.

Referenced by getLAngleLoc(), and getRAngleLoc().


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