clang  12.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]
Collaboration diagram for clang::InventedTemplateParameterInfo:
Collaboration 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. More...
 
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. More...
 
SmallVector< NamedDecl *, 4 > TemplateParams
 Store the list of the template parameters for a generic lambda or an abbreviated function template. More...
 

Detailed Description

Definition at line 2699 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 2707 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 2703 of file DeclSpec.h.

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

◆ 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 2716 of file DeclSpec.h.

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


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