[clang] a1e9b71 - [clang] Modernize SkipBodyInfo (NFC)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 24 23:16:06 PDT 2023


Author: Kazu Hirata
Date: 2023-04-24T23:15:55-07:00
New Revision: a1e9b718a53ce41ae11b3cf904f212223b537fca

URL: https://github.com/llvm/llvm-project/commit/a1e9b718a53ce41ae11b3cf904f212223b537fca
DIFF: https://github.com/llvm/llvm-project/commit/a1e9b718a53ce41ae11b3cf904f212223b537fca.diff

LOG: [clang] Modernize SkipBodyInfo (NFC)

Added: 
    

Modified: 
    clang/include/clang/Sema/Sema.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 0ab5dd9e8bb64..0b324bc54c32e 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -2588,13 +2588,11 @@ class Sema final {
   //
 
   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);


        


More information about the cfe-commits mailing list