clang 20.0.0git
Classes | Public Member Functions | Public Attributes | List of all members
clang::LambdaIntroducer Struct Reference

Represents a complete lambda introducer. More...

#include "clang/Sema/DeclSpec.h"

Classes

struct  LambdaCapture
 An individual capture in a lambda introducer. More...
 

Public Member Functions

 LambdaIntroducer ()=default
 
bool hasLambdaCapture () const
 
void addCapture (LambdaCaptureKind Kind, SourceLocation Loc, IdentifierInfo *Id, SourceLocation EllipsisLoc, LambdaCaptureInitKind InitKind, ExprResult Init, ParsedType InitCaptureType, SourceRange ExplicitRange)
 Append a capture in a lambda introducer.
 

Public Attributes

SourceRange Range
 
SourceLocation DefaultLoc
 
LambdaCaptureDefault Default = LCD_None
 
SmallVector< LambdaCapture, 4 > Captures
 

Detailed Description

Represents a complete lambda introducer.

Definition at line 2835 of file DeclSpec.h.

Constructor & Destructor Documentation

◆ LambdaIntroducer()

clang::LambdaIntroducer::LambdaIntroducer ( )
default

Member Function Documentation

◆ addCapture()

void clang::LambdaIntroducer::addCapture ( LambdaCaptureKind  Kind,
SourceLocation  Loc,
IdentifierInfo Id,
SourceLocation  EllipsisLoc,
LambdaCaptureInitKind  InitKind,
ExprResult  Init,
ParsedType  InitCaptureType,
SourceRange  ExplicitRange 
)
inline

Append a capture in a lambda introducer.

Definition at line 2869 of file DeclSpec.h.

References Captures, Id, clang::Init, Kind, and Loc.

◆ hasLambdaCapture()

bool clang::LambdaIntroducer::hasLambdaCapture ( ) const
inline

Definition at line 2864 of file DeclSpec.h.

References Captures, Default, and clang::LCD_None.

Referenced by DiagnoseStaticSpecifierRestrictions().

Member Data Documentation

◆ Captures

SmallVector<LambdaCapture, 4> clang::LambdaIntroducer::Captures

◆ Default

LambdaCaptureDefault clang::LambdaIntroducer::Default = LCD_None

◆ DefaultLoc

SourceLocation clang::LambdaIntroducer::DefaultLoc

◆ Range

SourceRange clang::LambdaIntroducer::Range

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