clang 20.0.0git
|
A template argument list. More...
#include "clang/AST/DeclTemplate.h"
Public Member Functions | |
TemplateArgumentList (const TemplateArgumentList &)=delete | |
TemplateArgumentList & | operator= (const TemplateArgumentList &)=delete |
const TemplateArgument & | get (unsigned Idx) const |
Retrieve the template argument at a given index. | |
const TemplateArgument & | operator[] (unsigned Idx) const |
Retrieve the template argument at a given index. | |
ArrayRef< TemplateArgument > | asArray () const |
Produce this as an array ref. | |
unsigned | size () const |
Retrieve the number of template arguments in this template argument list. | |
const TemplateArgument * | data () const |
Retrieve a pointer to the template argument list. | |
Static Public Member Functions | |
static TemplateArgumentList * | CreateCopy (ASTContext &Context, ArrayRef< TemplateArgument > Args) |
Create a new template argument list that copies the given set of template arguments. | |
Public Attributes | |
friend | TrailingObjects |
A template argument list.
Definition at line 243 of file DeclTemplate.h.
|
delete |
|
inline |
Produce this as an array ref.
Definition at line 274 of file DeclTemplate.h.
References data(), and size().
Referenced by clang::Sema::BuildVarTemplateInstantiation(), clang::interp::ByteCodeEmitter::compileFunc(), clang::Sema::FinishTemplateArgumentDeduction(), clang::Sema::getMoreSpecializedPartialSpecialization(), clang::FunctionDecl::getNameForDiagnostic(), clang::ClassTemplateSpecializationDecl::getNameForDiagnostic(), clang::VarTemplateSpecializationDecl::getNameForDiagnostic(), getPatternForClassTemplateSpecialization(), clang::RedeclarableTemplateDecl::SpecEntryTraits< FunctionTemplateSpecializationInfo >::getTemplateArgs(), getUuidAttrOfType(), clang::Sema::InstantiateFunctionDeclaration(), clang::Sema::InstantiateVariableDefinition(), clang::Sema::isMoreSpecializedThanPrimary(), clang::Sema::MarkUsedTemplateParameters(), clang::NamedDecl::printNestedNameSpecifier(), clang::FunctionTemplateSpecializationInfo::Profile(), clang::ClassTemplateSpecializationDecl::Profile(), clang::VarTemplateSpecializationDecl::Profile(), clang::Sema::SubstDefaultArgument(), clang::Sema::SubstituteExplicitTemplateArguments(), and clang::Sema::usesPartialOrExplicitSpecialization().
|
static |
Create a new template argument list that copies the given set of template arguments.
Definition at line 903 of file DeclTemplate.cpp.
References clang::ASTContext::Allocate().
Referenced by CheckDeducedArgumentConstraints(), clang::Sema::CheckFunctionTemplateSpecialization(), ConvertDeducedTemplateArguments(), clang::Sema::FinishTemplateArgumentDeduction(), FinishTemplateArgumentDeduction(), clang::ASTNodeImporter::ImportTemplateInformation(), instantiateOMPDeclareVariantAttr(), clang::Sema::SubstDefaultArgument(), clang::Sema::SubstituteExplicitTemplateArguments(), clang::ASTDeclReader::UpdateDecl(), clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(), clang::ASTDeclReader::VisitClassTemplateSpecializationDeclImpl(), clang::TemplateDeclInstantiator::VisitCXXMethodDecl(), clang::TemplateDeclInstantiator::VisitFunctionDecl(), clang::ASTDeclReader::VisitFunctionDecl(), and clang::ASTDeclReader::VisitVarTemplateSpecializationDeclImpl().
|
inline |
Retrieve a pointer to the template argument list.
Definition at line 283 of file DeclTemplate.h.
Referenced by asArray(), get(), and clang::Sema::getTemplateArgumentBindingsText().
|
inline |
Retrieve the template argument at a given index.
Definition at line 265 of file DeclTemplate.h.
References data().
Referenced by addInstanceOfTransition(), clang::ASTRecordWriter::AddTemplateArgumentList(), clang::PredefinedExpr::ComputeName(), operator[](), clang::Sema::SubstituteExplicitTemplateArguments(), and clang::ASTDeclWriter::VisitCXXMethodDecl().
|
delete |
|
inline |
Retrieve the template argument at a given index.
Definition at line 271 of file DeclTemplate.h.
References get().
|
inline |
Retrieve the number of template arguments in this template argument list.
Definition at line 280 of file DeclTemplate.h.
Referenced by addAssociatedClassesAndNamespaces(), clang::ASTRecordWriter::AddTemplateArgumentList(), asArray(), clang::PredefinedExpr::ComputeName(), clang::ASTNodeTraverser< Derived, NodeDelegateType >::dumpTemplateArgumentList(), clang::TypeName::getFullyQualifiedTemplateType(), clang::Sema::getTemplateArgumentBindingsText(), clang::Sema::MarkUsedTemplateParameters(), clang::sema::TemplateDeductionInfo::setExplicitArgs(), clang::Sema::SubstituteExplicitTemplateArguments(), clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(), and clang::ASTDeclWriter::VisitCXXMethodDecl().
friend clang::TemplateArgumentList::TrailingObjects |
Definition at line 254 of file DeclTemplate.h.