clang
3.9.0
|
A template argument list. More...
#include <DeclTemplate.h>
Public Types | |
enum | OnStackType { OnStack } |
Type used to indicate that the template argument list itself is a stack object. More... | |
Public Member Functions | |
TemplateArgumentList (OnStackType, ArrayRef< TemplateArgument > Args) | |
Construct a new, temporary template argument list on the stack. More... | |
TemplateArgumentList (const TemplateArgumentList *Other) | |
Produces a shallow copy of the given template argument list. More... | |
const TemplateArgument & | get (unsigned Idx) const |
Retrieve the template argument at a given index. More... | |
const TemplateArgument & | operator[] (unsigned Idx) const |
Retrieve the template argument at a given index. More... | |
ArrayRef< TemplateArgument > | asArray () const |
Produce this as an array ref. More... | |
unsigned | size () const |
Retrieve the number of template arguments in this template argument list. More... | |
const TemplateArgument * | data () const |
Retrieve a pointer to the template argument list. More... | |
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. More... | |
Public Attributes | |
friend | TrailingObjects |
A template argument list.
Definition at line 173 of file DeclTemplate.h.
Type used to indicate that the template argument list itself is a stack object.
It does not own its template arguments.
Enumerator | |
---|---|
OnStack |
Definition at line 192 of file DeclTemplate.h.
|
inlineexplicit |
Construct a new, temporary template argument list on the stack.
The template argument list does not own the template arguments provided.
Definition at line 203 of file DeclTemplate.h.
|
inlineexplicit |
Produces a shallow copy of the given template argument list.
This operation assumes that the input argument list outlives it. This takes the list as a pointer to avoid looking like a copy constructor, since this really really isn't safe to use that way.
Definition at line 212 of file DeclTemplate.h.
|
inline |
Produce this as an array ref.
Definition at line 225 of file DeclTemplate.h.
References data(), and size().
Referenced by clang::Sema::DefineImplicitLambdaToFunctionPointerConversion(), getLVForTemplateArgumentList(), clang::Sema::getMoreSpecializedPartialSpecialization(), clang::ClassTemplateSpecializationDecl::getNameForDiagnostic(), clang::FunctionDecl::getNameForDiagnostic(), clang::VarTemplateSpecializationDecl::getNameForDiagnostic(), clang::RedeclarableTemplateDecl::SpecEntryTraits< FunctionTemplateSpecializationInfo >::getTemplateArgs(), getUuidAttrOfType(), clang::Sema::InstantiateVariableDefinition(), clang::NamedDecl::printQualifiedName(), and clang::VarTemplateSpecializationDecl::Profile().
|
static |
Create a new template argument list that copies the given set of template arguments.
Definition at line 671 of file DeclTemplate.cpp.
References clang::ASTContext::Allocate().
Referenced by FinishTemplateArgumentDeduction(), clang::Sema::FinishTemplateArgumentDeduction(), clang::Sema::SubstituteExplicitTemplateArguments(), clang::ASTDeclReader::UpdateDecl(), clang::ASTDeclReader::VisitClassTemplateSpecializationDeclImpl(), clang::TemplateDeclInstantiator::VisitCXXMethodDecl(), clang::ASTDeclReader::VisitFunctionDecl(), clang::TemplateDeclInstantiator::VisitFunctionDecl(), and clang::ASTDeclReader::VisitVarTemplateSpecializationDeclImpl().
|
inline |
Retrieve a pointer to the template argument list.
Definition at line 234 of file DeclTemplate.h.
Referenced by clang::MultiLevelTemplateArgumentList::addOuterTemplateArguments(), asArray(), DeduceTemplateArguments(), get(), clang::Sema::getTemplateArgumentBindingsText(), clang::Sema::isStdInitializerList(), clang::Sema::MarkUsedTemplateParameters(), clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(), and clang::ASTNodeImporter::VisitVarTemplateSpecializationDecl().
|
inline |
Retrieve the template argument at a given index.
Definition at line 216 of file DeclTemplate.h.
References data().
Referenced by clang::ASTRecordWriter::AddTemplateArgumentList(), clang::PredefinedExpr::ComputeName(), IsStructurallyEquivalent(), and clang::Sema::SubstituteExplicitTemplateArguments().
|
inline |
Retrieve the template argument at a given index.
Definition at line 222 of file DeclTemplate.h.
|
inline |
Retrieve the number of template arguments in this template argument list.
Definition at line 231 of file DeclTemplate.h.
Referenced by addAssociatedClassesAndNamespaces(), clang::MultiLevelTemplateArgumentList::addOuterTemplateArguments(), clang::ASTRecordWriter::AddTemplateArgumentList(), asArray(), clang::PredefinedExpr::ComputeName(), DeduceTemplateArguments(), clang::TypeName::getFullyQualifiedTemplateType(), clang::Sema::getTemplateArgumentBindingsText(), isCharSpecialization(), isStreamCharSpecialization(), IsStructurallyEquivalent(), clang::Sema::MarkUsedTemplateParameters(), clang::Sema::SubstituteExplicitTemplateArguments(), clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(), and clang::ASTNodeImporter::VisitVarTemplateSpecializationDecl().
friend clang::TemplateArgumentList::TrailingObjects |
Definition at line 236 of file DeclTemplate.h.