[lldb] Default initialize CommandOptions fields (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 18 Feb 2022 04:51:01 +0000 (20:51 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 18 Feb 2022 17:07:25 +0000 (09:07 -0800)
Make sure all fields are default initialized to the same values.

lldb/source/Commands/CommandObjectCommands.cpp

index ebb84bc..a828ba1 100644 (file)
@@ -1480,7 +1480,7 @@ protected:
     std::string m_class_name;
     std::string m_funct_name;
     std::string m_short_help;
-    bool m_overwrite;
+    bool m_overwrite = false;
     ScriptedCommandSynchronicity m_synchronicity =
         eScriptedCommandSynchronicitySynchronous;
   };
@@ -1637,8 +1637,9 @@ protected:
   std::string m_cmd_name;
   CommandObjectMultiword *m_container = nullptr;
   std::string m_short_help;
-  bool m_overwrite;
-  ScriptedCommandSynchronicity m_synchronicity;
+  bool m_overwrite = false;
+  ScriptedCommandSynchronicity m_synchronicity =
+      eScriptedCommandSynchronicitySynchronous;
 };
 
 // CommandObjectCommandsScriptList