clang
10.0.0git
|
Defines the position of a template parameter within a template parameter list. More...
#include "clang/AST/DeclTemplate.h"
Public Member Functions | |
TemplateParmPosition ()=delete | |
unsigned | getDepth () const |
Get the nesting depth of the template parameter. More... | |
void | setDepth (unsigned D) |
unsigned | getPosition () const |
Get the position of the template parameter within its parameter list. More... | |
void | setPosition (unsigned P) |
unsigned | getIndex () const |
Get the index of the template parameter within its parameter list. More... | |
Protected Member Functions | |
TemplateParmPosition (unsigned D, unsigned P) | |
Protected Attributes | |
unsigned | Depth |
unsigned | Position |
Defines the position of a template parameter within a template parameter list.
Because template parameter can be listed sequentially for out-of-line template members, each template parameter is given a Depth - the nesting of template parameter scopes - and a Position - the occurrence within the parameter list. This class is inheritedly privately by different kinds of template parameters and is not part of the Decl hierarchy. Just a facility.
Definition at line 1147 of file DeclTemplate.h.
|
inlineprotected |
Definition at line 1154 of file DeclTemplate.h.
|
delete |
|
inline |
Get the nesting depth of the template parameter.
Definition at line 1160 of file DeclTemplate.h.
References Depth.
Referenced by canonicalizeImmediatelyDeclaredConstraint(), CheckNonTypeTemplatePartialSpecializationArgs(), clang::Sema::CheckTemplateArgument(), DeduceNonTypeTemplateArgument(), clang::ASTContext::getCommentForDecl(), isParenthesizedADLCallee(), MarkUsedTemplateParameters(), SubstDefaultTemplateArgument(), clang::TemplateDeclInstantiator::VisitCXXMethodDecl(), clang::ASTDeclWriter::VisitNonTypeTemplateParmDecl(), clang::JSONNodeDumper::VisitNonTypeTemplateParmDecl(), clang::TextNodeDumper::VisitNonTypeTemplateParmDecl(), clang::ASTNodeImporter::VisitNonTypeTemplateParmDecl(), clang::ASTDeclWriter::VisitTemplateTemplateParmDecl(), clang::JSONNodeDumper::VisitTemplateTemplateParmDecl(), clang::TextNodeDumper::VisitTemplateTemplateParmDecl(), and clang::ASTNodeImporter::VisitTemplateTemplateParmDecl().
|
inline |
Get the index of the template parameter within its parameter list.
Definition at line 1168 of file DeclTemplate.h.
Referenced by canonicalizeImmediatelyDeclaredConstraint(), DeduceNonTypeTemplateArgument(), isParenthesizedADLCallee(), MarkUsedTemplateParameters(), clang::JSONNodeDumper::VisitNonTypeTemplateParmDecl(), clang::TextNodeDumper::VisitNonTypeTemplateParmDecl(), clang::JSONNodeDumper::VisitTemplateTemplateParmDecl(), and clang::TextNodeDumper::VisitTemplateTemplateParmDecl().
|
inline |
Get the position of the template parameter within its parameter list.
Definition at line 1164 of file DeclTemplate.h.
Referenced by canonicalizeImmediatelyDeclaredConstraint(), clang::ASTContext::getCommentForDecl(), clang::TemplateDeclInstantiator::VisitCXXMethodDecl(), clang::ASTDeclWriter::VisitNonTypeTemplateParmDecl(), clang::ASTNodeImporter::VisitNonTypeTemplateParmDecl(), clang::ASTDeclWriter::VisitTemplateTemplateParmDecl(), and clang::ASTNodeImporter::VisitTemplateTemplateParmDecl().
|
inline |
Definition at line 1161 of file DeclTemplate.h.
Referenced by clang::ASTDeclReader::VisitNonTypeTemplateParmDecl(), and clang::ASTDeclReader::VisitTemplateTemplateParmDecl().
|
inline |
Definition at line 1165 of file DeclTemplate.h.
References P.
Referenced by clang::ASTDeclReader::VisitNonTypeTemplateParmDecl(), and clang::ASTDeclReader::VisitTemplateTemplateParmDecl().
|
protected |
Definition at line 1151 of file DeclTemplate.h.
|
protected |
Definition at line 1152 of file DeclTemplate.h.