clang API Documentation

clang::ExplicitTemplateArgumentList Struct Reference

Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>". More...

#include <Expr.h>

Collaboration diagram for clang::ExplicitTemplateArgumentList:
Collaboration graph
[legend]

List of all members.

Public Member Functions

TemplateArgumentLocgetTemplateArgs ()
 Retrieve the template arguments.
const TemplateArgumentLocgetTemplateArgs () const
 Retrieve the template arguments.
void initializeFrom (const TemplateArgumentListInfo &List)
void initializeFrom (const TemplateArgumentListInfo &List, bool &Dependent, bool &InstantiationDependent, bool &ContainsUnexpandedParameterPack)
void copyInto (TemplateArgumentListInfo &List) const

Static Public Member Functions

static std::size_t sizeFor (unsigned NumTemplateArgs)
static std::size_t sizeFor (const TemplateArgumentListInfo &List)

Public Attributes

SourceLocation LAngleLoc
 The source location of the left angle bracket ('<');.
SourceLocation RAngleLoc
 The source location of the right angle bracket ('>');.
unsigned NumTemplateArgs
 The number of template arguments in TemplateArgs. The actual template arguments (if any) are stored after the ExplicitTemplateArgumentList structure.

Detailed Description

Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>".

Definition at line 693 of file Expr.h.


Member Function Documentation

void ExplicitTemplateArgumentList::copyInto ( TemplateArgumentListInfo List  )  const
const TemplateArgumentLoc* clang::ExplicitTemplateArgumentList::getTemplateArgs (  )  const [inline]

Retrieve the template arguments.

Definition at line 711 of file Expr.h.

TemplateArgumentLoc* clang::ExplicitTemplateArgumentList::getTemplateArgs (  )  [inline]
void ExplicitTemplateArgumentList::initializeFrom ( const TemplateArgumentListInfo List,
bool &  Dependent,
bool &  InstantiationDependent,
bool &  ContainsUnexpandedParameterPack 
)
void ExplicitTemplateArgumentList::initializeFrom ( const TemplateArgumentListInfo List  ) 
std::size_t ExplicitTemplateArgumentList::sizeFor ( const TemplateArgumentListInfo List  )  [static]

Definition at line 179 of file Expr.cpp.

References clang::TemplateArgumentListInfo::size(), and sizeFor().

std::size_t ExplicitTemplateArgumentList::sizeFor ( unsigned  NumTemplateArgs  )  [static]

Member Data Documentation


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