[clang] Modernize ModuleDeclSeq (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 16 Apr 2023 21:48:18 +0000 (14:48 -0700)
committerKazu Hirata <kazu@google.com>
Sun, 16 Apr 2023 21:48:18 +0000 (14:48 -0700)
Identified with modernize-use-default-member-init.

clang/include/clang/Lex/Preprocessor.h

index a7ba486..a34a451 100644 (file)
@@ -499,7 +499,7 @@ private:
     };
 
   public:
-    ModuleDeclSeq() : State(NotAModuleDecl) {}
+    ModuleDeclSeq() = default;
 
     void handleExport() {
       if (State == NotAModuleDecl)
@@ -586,7 +586,7 @@ private:
     }
 
   private:
-    ModuleDeclState State;
+    ModuleDeclState State = NotAModuleDecl;
     std::string Name;
   };