| clang 22.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. | |
| unsigned | getNumTemplateArgs () const | 
| ArrayRef< TemplateArgumentLoc > | arguments () const | 
| const TemplateArgumentLoc & | operator[] (unsigned I) const | 
| Static Public Member Functions | |
| static const ASTTemplateArgumentListInfo * | Create (const ASTContext &C, const TemplateArgumentListInfo &List) | 
| static const ASTTemplateArgumentListInfo * | Create (const ASTContext &C, const ASTTemplateArgumentListInfo *List) | 
| Public Attributes | |
| SourceLocation | LAngleLoc | 
| The source location of the left angle bracket ('<'). | |
| SourceLocation | RAngleLoc | 
| The source location of the right angle bracket ('>'). | |
| unsigned | NumTemplateArgs | 
| The number of template arguments in TemplateArgs. | |
| 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 676 of file TemplateBase.h.
| 
 | inline | 
Definition at line 707 of file TemplateBase.h.
References getNumTemplateArgs(), and getTemplateArgs().
Referenced by clang::computeDependence(), clang::ASTNodeTraverser< Derived, NodeDelegateType >::dumpASTTemplateArgumentListInfo(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), clang::Sema::SubstConceptTemplateArguments(), SubstituteConceptsInConstraintExpression(), clang::Sema::SubstTypeConstraint(), and clang::ASTNodeTraverser< Derived, NodeDelegateType >::VisitConceptSpecializationExpr().
| 
 | static | 
Definition at line 749 of file TemplateBase.cpp.
References clang::C, and getNumTemplateArgs().
| 
 | static | 
Definition at line 741 of file TemplateBase.cpp.
References clang::C, and clang::TemplateArgumentListInfo::size().
Referenced by clang::Sema::AttachTypeConstraint(), clang::Sema::CheckConceptTemplateId(), clang::hlsl::TemplateParameterListBuilder::constructConceptSpecializationExpr(), clang::DependentFunctionTemplateSpecializationInfo::Create(), clang::FunctionTemplateSpecializationInfo::Create(), createTrivialConceptReference(), clang::ASTNodeImporter::import(), clang::ASTRecordReader::readASTTemplateArgumentListInfo(), clang::ClassTemplateSpecializationDecl::setTemplateArgsAsWritten(), and clang::VarTemplateSpecializationDecl::setTemplateArgsAsWritten().
| 
 | inline | 
Definition at line 698 of file TemplateBase.h.
References LAngleLoc.
Referenced by clang::Sema::SubstConceptTemplateArguments().
| 
 | inline | 
Definition at line 705 of file TemplateBase.h.
References NumTemplateArgs.
Referenced by arguments(), Create(), and clang::Sema::SubstConceptTemplateArguments().
| 
 | inline | 
Definition at line 699 of file TemplateBase.h.
References RAngleLoc.
Referenced by clang::ConceptReference::getEndLoc(), and clang::Sema::SubstConceptTemplateArguments().
| 
 | inline | 
Retrieve the template arguments.
Definition at line 702 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), arguments(), operator[](), and clang::Sema::SubstConceptTemplateArguments().
| 
 | inline | 
Definition at line 711 of file TemplateBase.h.
References getTemplateArgs().
| 
 | friend | 
Definition at line 680 of file TemplateBase.h.
References ASTNodeImporter.
Referenced by ASTNodeImporter.
| SourceLocation clang::ASTTemplateArgumentListInfo::LAngleLoc | 
The source location of the left angle bracket ('<').
Definition at line 690 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), getLAngleLoc(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), and clang::Sema::SubstTypeConstraint().
| unsigned clang::ASTTemplateArgumentListInfo::NumTemplateArgs | 
The number of template arguments in TemplateArgs.
Definition at line 696 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), getNumTemplateArgs(), and clang::ASTContext::isSameTypeConstraint().
| SourceLocation clang::ASTTemplateArgumentListInfo::RAngleLoc | 
The source location of the right angle bracket ('>').
Definition at line 693 of file TemplateBase.h.
Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), getRAngleLoc(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization(), and clang::Sema::SubstTypeConstraint().