clang 20.0.0git
Public Attributes | List of all members
clang::InventedTemplateParameterInfo Struct Reference

#include "clang/Sema/DeclSpec.h"

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

Public Attributes

unsigned NumExplicitTemplateParams = 0
 The number of parameters in the template parameter list that were explicitly specified by the user, as opposed to being invented by use of an auto parameter.
 
unsigned AutoTemplateParameterDepth = 0
 If this is a generic lambda or abbreviated function template, use this as the depth of each 'auto' parameter, during initial AST construction.
 
SmallVector< NamedDecl *, 4 > TemplateParams
 Store the list of the template parameters for a generic lambda or an abbreviated function template.
 

Detailed Description

Definition at line 2882 of file DeclSpec.h.

Member Data Documentation

◆ AutoTemplateParameterDepth

unsigned clang::InventedTemplateParameterInfo::AutoTemplateParameterDepth = 0

If this is a generic lambda or abbreviated function template, use this as the depth of each 'auto' parameter, during initial AST construction.

Definition at line 2890 of file DeclSpec.h.

Referenced by InventTemplateParameter().

◆ NumExplicitTemplateParams

unsigned clang::InventedTemplateParameterInfo::NumExplicitTemplateParams = 0

The number of parameters in the template parameter list that were explicitly specified by the user, as opposed to being invented by use of an auto parameter.

Definition at line 2886 of file DeclSpec.h.

Referenced by clang::Sema::ActOnLambdaExplicitTemplateParameterList(), and clang::Sema::ActOnLambdaExpressionAfterIntroducer().

◆ TemplateParams

SmallVector<NamedDecl*, 4> clang::InventedTemplateParameterInfo::TemplateParams

Store the list of the template parameters for a generic lambda or an abbreviated function template.

If this is a generic lambda or abbreviated function template, this holds the explicit template parameters followed by the auto parameters converted into TemplateTypeParmDecls. It can be used to construct the generic lambda or abbreviated template's template parameter list during initial AST construction.

Definition at line 2899 of file DeclSpec.h.

Referenced by clang::Sema::ActOnLambdaExplicitTemplateParameterList(), getGenericLambdaTemplateParameterList(), InventTemplateParameter(), and clang::sema::LambdaScopeInfo::isGenericLambda().


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