" in "sort". More...">

clang: clang::ASTTemplateArgumentListInfo Struct Reference (original) (raw)

Represents an explicit template argument list in C++, e.g., the "" in "sort". More...

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

Inheritance diagram for clang::ASTTemplateArgumentListInfo:

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
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

Detailed Description

Represents an explicit template argument list in C++, e.g., the "" in "sort".

This is safe to be used inside an AST node, in contrast with TemplateArgumentListInfo.

Definition at line 676 of file TemplateBase.h.

Member Function Documentation

arguments()

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().

Create() [1/2]

Create() [2/2]

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().

getLAngleLoc()

SourceLocation clang::ASTTemplateArgumentListInfo::getLAngleLoc ( ) const inline

getNumTemplateArgs()

unsigned clang::ASTTemplateArgumentListInfo::getNumTemplateArgs ( ) const inline

getRAngleLoc()

SourceLocation clang::ASTTemplateArgumentListInfo::getRAngleLoc ( ) const inline

getTemplateArgs()

const TemplateArgumentLoc * clang::ASTTemplateArgumentListInfo::getTemplateArgs ( ) const inline

operator[]()

ASTNodeImporter

Member Data Documentation

LAngleLoc

NumTemplateArgs

unsigned clang::ASTTemplateArgumentListInfo::NumTemplateArgs

RAngleLoc


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