clang: clang::TemplateArgumentList Class Reference (original) (raw)

A template argument list. More...

#include "[clang/AST/DeclTemplate.h](DeclTemplate%5F8h%5Fsource.html)"

Inheritance diagram for clang::TemplateArgumentList:

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.
Public Attributes
friend TrailingObjects

Detailed Description

Constructor & Destructor Documentation

Member Function Documentation

asArray()

Produce this as an array ref.

Definition at line 280 of file DeclTemplate.h.

References size().

Referenced by clang::Sema::BuildVarTemplateInstantiation(), clang::CodeGen::CodeGenFunction::EmitLambdaDelegatingInvokeBody(), clang::CIRGen::CIRGenFunction::emitLambdaDelegatingInvokeBody(), clang::Sema::FinishTemplateArgumentDeduction(), clang::Sema::getMoreSpecializedPartialSpecialization(), clang::FunctionDecl::getNameForDiagnostic(), getPatternForClassTemplateSpecialization(), clang::RedeclarableTemplateDecl::SpecEntryTraits< FunctionTemplateSpecializationInfo >::getTemplateArgs(), getUuidAttrOfType(), clang::Sema::InstantiateFunctionDeclaration(), clang::Sema::InstantiateVariableDefinition(), clang::Sema::isMoreSpecializedThanPrimary(), clang::Sema::MarkUsedTemplateParameters(), clang::NamedDecl::printNestedNameSpecifier(), clang::Sema::SubstituteExplicitTemplateArguments(), clang::Sema::usesPartialOrExplicitSpecialization(), clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(), and clang::ASTNodeImporter::VisitVarTemplateSpecializationDecl().

CreateCopy()

Create a new template argument list that copies the given set of template arguments.

Definition at line 943 of file DeclTemplate.cpp.

Referenced by CheckDeducedArgumentConstraints(), clang::Sema::CheckFunctionTemplateSpecialization(), ConvertDeducedTemplateArguments(), clang::Sema::FinishTemplateArgumentDeduction(), FinishTemplateArgumentDeduction(), FinishTemplateArgumentDeduction(), clang::ASTNodeImporter::ImportTemplateInformation(), instantiateOMPDeclareVariantAttr(), clang::Sema::SubstituteExplicitTemplateArguments(), clang::ASTDeclReader::UpdateDecl(), clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(), clang::ASTDeclReader::VisitClassTemplateSpecializationDeclImpl(), clang::TemplateDeclInstantiator::VisitCXXMethodDecl(), clang::ASTDeclReader::VisitFunctionDecl(), clang::TemplateDeclInstantiator::VisitFunctionDecl(), and clang::ASTDeclReader::VisitVarTemplateSpecializationDeclImpl().

data()

get()

operator=()

operator[]()

Retrieve the template argument at a given index.

Definition at line 277 of file DeclTemplate.h.

References get().

size()

unsigned clang::TemplateArgumentList::size ( ) const inline

Retrieve the number of template arguments in this template argument list.

Definition at line 286 of file DeclTemplate.h.

Referenced by addAssociatedClassesAndNamespaces(), clang::ASTRecordWriter::AddTemplateArgumentList(), asArray(), clang::PredefinedExpr::ComputeName(), clang::ASTNodeTraverser< Derived, NodeDelegateType >::dumpTemplateArgumentList(), clang::TypeName::getFullyQualifiedTemplateType(), clang::interp::InterpState::getStdAllocatorCaller(), clang::Sema::getTemplateArgumentBindingsText(), clang::Sema::MarkUsedTemplateParameters(), clang::sema::TemplateDeductionInfo::setExplicitArgs(), clang::Sema::SubstituteExplicitTemplateArguments(), clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(), and clang::ASTDeclWriter::VisitCXXMethodDecl().

Member Data Documentation

TrailingObjects

friend clang::TemplateArgumentList::TrailingObjects


The documentation for this class was generated from the following files: