clang  5.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | 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 "clang/AST/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...
 
llvm::ArrayRef
< TemplateArgumentLoc
arguments () const
 
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...
 

Friends

class ASTNodeImporter
 

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 573 of file TemplateBase.h.

Member Function Documentation

llvm::ArrayRef<TemplateArgumentLoc> clang::ASTTemplateArgumentListInfo::arguments ( ) const
inline

Definition at line 597 of file TemplateBase.h.

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 601 of file TemplateBase.h.

References I.

Friends And Related Function Documentation

friend class ASTNodeImporter
friend

Definition at line 578 of file TemplateBase.h.

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: