clang
9.0.0
|
Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>". More...
#include "clang/AST/TemplateBase.h"
Public Member Functions | |
SourceLocation | getLAngleLoc () const |
SourceLocation | getRAngleLoc () const |
const TemplateArgumentLoc * | getTemplateArgs () const |
Retrieve the template arguments. More... | |
unsigned | getNumTemplateArgs () const |
llvm::ArrayRef< TemplateArgumentLoc > | arguments () const |
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... | |
Friends | |
class | ASTNodeImporter |
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 603 of file TemplateBase.h.
|
inline |
Definition at line 631 of file TemplateBase.h.
Referenced by clang::ASTNodeTraverser< ASTDumper, TextNodeDumper >::dumpASTTemplateArgumentListInfo().
|
static |
Definition at line 564 of file TemplateBase.cpp.
Referenced by clang::FunctionTemplateSpecializationInfo::Create(), clang::ClassTemplatePartialSpecializationDecl::Create(), and clang::ClassScopeFunctionSpecializationDecl::Create().
|
inline |
Definition at line 622 of file TemplateBase.h.
|
inline |
Definition at line 629 of file TemplateBase.h.
|
inline |
Definition at line 623 of file TemplateBase.h.
|
inline |
Retrieve the template arguments.
Definition at line 626 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), and clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization().
|
inline |
Definition at line 635 of file TemplateBase.h.
References AttributeLangSupport::C, and clang::Create().
|
friend |
Definition at line 607 of file TemplateBase.h.
SourceLocation clang::ASTTemplateArgumentListInfo::LAngleLoc |
The source location of the left angle bracket ('<').
Definition at line 614 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), and clang::ASTDeclWriter::VisitFunctionDecl().
unsigned clang::ASTTemplateArgumentListInfo::NumTemplateArgs |
The number of template arguments in TemplateArgs.
Definition at line 620 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), 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 617 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), and clang::ASTDeclWriter::VisitFunctionDecl().