clang  3.9.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::ASTTemplateArgumentListInfo Struct Referencefinal

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

#include <TemplateBase.h>

Inheritance diagram for clang::ASTTemplateArgumentListInfo:
[legend]
Collaboration diagram for clang::ASTTemplateArgumentListInfo:
[legend]

Public Member Functions

const TemplateArgumentLocgetTemplateArgs () const
 Retrieve the template arguments. More...
 
const TemplateArgumentLocoperator[] (unsigned I) const
 

Static Public Member Functions

static const
ASTTemplateArgumentListInfo
Create (ASTContext &C, const TemplateArgumentListInfo &List)
 

Public Attributes

SourceLocation LAngleLoc
 The source location of the left angle bracket ('<'). More...
 
SourceLocation RAngleLoc
 The source location of the right angle bracket ('>'). More...
 
unsigned NumTemplateArgs
 The number of template arguments in TemplateArgs. More...
 

Detailed Description

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

This is safe to be used inside an AST node, in contrast with TemplateArgumentListInfo.

Definition at line 572 of file TemplateBase.h.

Member Function Documentation

const ASTTemplateArgumentListInfo * ASTTemplateArgumentListInfo::Create ( ASTContext C,
const TemplateArgumentListInfo List 
)
static
const TemplateArgumentLoc* clang::ASTTemplateArgumentListInfo::getTemplateArgs ( ) const
inline
const TemplateArgumentLoc& clang::ASTTemplateArgumentListInfo::operator[] ( unsigned  I) const
inline

Definition at line 595 of file TemplateBase.h.

References I.

Member Data Documentation

SourceLocation clang::ASTTemplateArgumentListInfo::LAngleLoc
unsigned clang::ASTTemplateArgumentListInfo::NumTemplateArgs
SourceLocation clang::ASTTemplateArgumentListInfo::RAngleLoc

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