clang
3.9.0
|
Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>". More...
#include <TemplateBase.h>
Public Member Functions | |
const TemplateArgumentLoc * | getTemplateArgs () const |
Retrieve the template arguments. More... | |
const TemplateArgumentLoc & | operator[] (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... | |
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.
|
static |
Definition at line 530 of file TemplateBase.cpp.
References clang::ASTContext::Allocate(), and clang::TemplateArgumentListInfo::size().
Referenced by clang::FunctionTemplateSpecializationInfo::Create(), clang::ClassTemplatePartialSpecializationDecl::Create(), clang::VarTemplatePartialSpecializationDecl::Create(), and clang::ASTReader::ReadASTTemplateArgumentListInfo().
|
inline |
Retrieve the template arguments.
Definition at line 591 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), FinishTemplateArgumentDeduction(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), and clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization().
|
inline |
Definition at line 595 of file TemplateBase.h.
References I.
SourceLocation clang::ASTTemplateArgumentListInfo::LAngleLoc |
The source location of the left angle bracket ('<').
Definition at line 582 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), FinishTemplateArgumentDeduction(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), and clang::ASTDeclWriter::VisitFunctionDecl().
unsigned clang::ASTTemplateArgumentListInfo::NumTemplateArgs |
The number of template arguments in TemplateArgs.
Definition at line 588 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), FinishTemplateArgumentDeduction(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), and clang::ASTDeclWriter::VisitFunctionDecl().
SourceLocation clang::ASTTemplateArgumentListInfo::RAngleLoc |
The source location of the right angle bracket ('>').
Definition at line 585 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), FinishTemplateArgumentDeduction(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), and clang::ASTDeclWriter::VisitFunctionDecl().