Skip to content

Commit

Permalink
[Sema] Modernize LambdaIntroducer (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 27, 2023
1 parent f79bbef commit 3d64b63
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clang/include/clang/Sema/DeclSpec.h
Original file line number Diff line number Diff line change
Expand Up @@ -2769,11 +2769,10 @@ struct LambdaIntroducer {

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

LambdaIntroducer()
: Default(LCD_None) {}
LambdaIntroducer() = default;

bool hasLambdaCapture() const {
return Captures.size() > 0 || Default != LCD_None;
Expand Down

0 comments on commit 3d64b63

Please sign in to comment.