[clang] 3d64b63 - [Sema] Modernize LambdaIntroducer (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 27 09:24:36 PDT 2023
Author: Kazu Hirata
Date: 2023-08-27T09:24:21-07:00
New Revision: 3d64b63673b6583d0e4c6daedc2005e765c878ec
URL: https://github.com/llvm/llvm-project/commit/3d64b63673b6583d0e4c6daedc2005e765c878ec
DIFF: https://github.com/llvm/llvm-project/commit/3d64b63673b6583d0e4c6daedc2005e765c878ec.diff
LOG: [Sema] Modernize LambdaIntroducer (NFC)
Added:
Modified:
clang/include/clang/Sema/DeclSpec.h
Removed:
################################################################################
diff --git a/clang/include/clang/Sema/DeclSpec.h b/clang/include/clang/Sema/DeclSpec.h
index 4a5d7145803979..ff5e2e2e57366d 100644
--- a/clang/include/clang/Sema/DeclSpec.h
+++ b/clang/include/clang/Sema/DeclSpec.h
@@ -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;
More information about the cfe-commits
mailing list