clang
15.0.0git
|
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 (const 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 612 of file TemplateBase.h.
|
inline |
Definition at line 640 of file TemplateBase.h.
Referenced by clang::computeDependence(), clang::ASTNodeTraverser< ASTDumper, TextNodeDumper >::dumpASTTemplateArgumentListInfo(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), clang::TypeConstraint::print(), clang::Sema::SubstTypeConstraint(), and clang::ASTNodeTraverser< ASTDumper, TextNodeDumper >::VisitConceptSpecializationExpr().
|
static |
Definition at line 613 of file TemplateBase.cpp.
Referenced by clang::Sema::AttachTypeConstraint(), clang::FunctionTemplateSpecializationInfo::Create(), clang::ClassScopeFunctionSpecializationDecl::Create(), clang::ASTRecordReader::readASTTemplateArgumentListInfo(), and clang::ASTNodeImporter::VisitTemplateTypeParmDecl().
|
inline |
Definition at line 631 of file TemplateBase.h.
|
inline |
Definition at line 638 of file TemplateBase.h.
|
inline |
Definition at line 632 of file TemplateBase.h.
|
inline |
Retrieve the template arguments.
Definition at line 635 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo().
|
inline |
Definition at line 644 of file TemplateBase.h.
|
friend |
Definition at line 616 of file TemplateBase.h.
SourceLocation clang::ASTTemplateArgumentListInfo::LAngleLoc |
The source location of the left angle bracket ('<').
Definition at line 623 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), clang::Sema::SubstTypeConstraint(), and clang::ASTDeclWriter::VisitFunctionDecl().
unsigned clang::ASTTemplateArgumentListInfo::NumTemplateArgs |
The number of template arguments in TemplateArgs.
Definition at line 629 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), and clang::ASTDeclWriter::VisitFunctionDecl().
SourceLocation clang::ASTTemplateArgumentListInfo::RAngleLoc |
The source location of the right angle bracket ('>').
Definition at line 626 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), clang::ConceptSpecializationExpr::getEndLoc(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), clang::Sema::SubstTypeConstraint(), and clang::ASTDeclWriter::VisitFunctionDecl().