From: Jonas Devlieghere Date: Fri, 18 Feb 2022 04:51:01 +0000 (-0800) Subject: [lldb] Default initialize CommandOptions fields (NFC) X-Git-Tag: upstream/15.0.7~15899 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4a03b26898e9ca5917a425fc4b089bf5ba19272;p=platform%2Fupstream%2Fllvm.git [lldb] Default initialize CommandOptions fields (NFC) Make sure all fields are default initialized to the same values. --- diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index ebb84bc..a828ba1 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -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