clang 20.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::SubstNonTypeTemplateParmExpr Class Reference

Represents a reference to a non-type template parameter that has been substituted with a template argument. More...

#include "clang/AST/ExprCXX.h"

Inheritance diagram for clang::SubstNonTypeTemplateParmExpr:
Inheritance graph
[legend]

Public Member Functions

 SubstNonTypeTemplateParmExpr (QualType Ty, ExprValueKind ValueKind, SourceLocation Loc, Expr *Replacement, Decl *AssociatedDecl, unsigned Index, std::optional< unsigned > PackIndex, bool RefParam)
 
SourceLocation getNameLoc () const
 
SourceLocation getBeginLoc () const
 
SourceLocation getEndLoc () const
 
ExprgetReplacement () const
 
DeclgetAssociatedDecl () const
 A template-like entity which owns the whole pattern being substituted.
 
unsigned getIndex () const
 Returns the index of the replaced parameter in the associated declaration.
 
std::optional< unsignedgetPackIndex () const
 
NonTypeTemplateParmDeclgetParameter () const
 
bool isReferenceParameter () const
 
QualType getParameterType (const ASTContext &Ctx) const
 Determine the substituted type of the template parameter.
 
child_range children ()
 
const_child_range children () const
 
- Public Member Functions inherited from clang::Expr
 Expr ()=delete
 
 Expr (const Expr &)=delete