clang  6.0.0svn
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:
Inheritance graph
[legend]
Collaboration diagram for clang::ASTTemplateArgumentListInfo:
Collaboration graph
[legend]

Public Member Functions

const TemplateArgumentLocgetTemplateArgs () const
 Retrieve the template arguments. More...
 
llvm::ArrayRef< TemplateArgumentLocarguments () const
 
const TemplateArgumentLocoperator[] (unsigned I) const
 

Static Public Member Functions

static const ASTTemplateArgumentListInfoCreate (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 595 of file TemplateBase.h.

Member Function Documentation

◆ arguments()

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

Definition at line 619 of file TemplateBase.h.

◆ Create()

const ASTTemplateArgumentListInfo * ASTTemplateArgumentListInfo::Create ( ASTContext C,
const TemplateArgumentListInfo List 
)
static

◆ getTemplateArgs()

const TemplateArgumentLoc* clang::ASTTemplateArgumentListInfo::getTemplateArgs ( ) const
inline

◆ operator[]()

const TemplateArgumentLoc& clang::ASTTemplateArgumentListInfo::operator[] ( unsigned  I) const
inline

Definition at line 623 of file TemplateBase.h.

Friends And Related Function Documentation

◆ ASTNodeImporter

friend class ASTNodeImporter
friend

Definition at line 599 of file TemplateBase.h.

Member Data Documentation

◆ LAngleLoc

SourceLocation clang::ASTTemplateArgumentListInfo::LAngleLoc

◆ NumTemplateArgs

unsigned clang::ASTTemplateArgumentListInfo::NumTemplateArgs

◆ RAngleLoc

SourceLocation clang::ASTTemplateArgumentListInfo::RAngleLoc

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