From a1e9b718a53ce41ae11b3cf904f212223b537fca Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 24 Apr 2023 23:15:55 -0700 Subject: [PATCH] [clang] Modernize SkipBodyInfo (NFC) --- clang/include/clang/Sema/Sema.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index 0ab5dd9..0b324bc 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/include/clang/Sema/Sema.h @@ -2588,13 +2588,11 @@ public: // struct SkipBodyInfo { - SkipBodyInfo() - : ShouldSkip(false), CheckSameAsPrevious(false), Previous(nullptr), - New(nullptr) {} - bool ShouldSkip; - bool CheckSameAsPrevious; - NamedDecl *Previous; - NamedDecl *New; + SkipBodyInfo() = default; + bool ShouldSkip = false; + bool CheckSameAsPrevious = false; + NamedDecl *Previous = nullptr; + NamedDecl *New = nullptr; }; DeclGroupPtrTy ConvertDeclToDeclGroup(Decl *Ptr, Decl *OwnedType = nullptr); -- 2.7.4