Skip to content

Commit 3d64b63

Browse files
[Sema] Modernize LambdaIntroducer (NFC)
1 parent f79bbef commit 3d64b63

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/include/clang/Sema/DeclSpec.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2769,11 +2769,10 @@ struct LambdaIntroducer {
27692769

27702770
SourceRange Range;
27712771
SourceLocation DefaultLoc;
2772-
LambdaCaptureDefault Default;
2772+
LambdaCaptureDefault Default = LCD_None;
27732773
SmallVector<LambdaCapture, 4> Captures;
27742774

2775-
LambdaIntroducer()
2776-
: Default(LCD_None) {}
2775+
LambdaIntroducer() = default;
27772776

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

0 commit comments

Comments
 (0)