From 28c878aeb29a7e7a9ae8f748de6a3c41482b97be Mon Sep 17 00:00:00 2001 From: Shafik Yaghmour Date: Mon, 14 Mar 2022 13:32:03 -0700 Subject: [LLDB] Applying clang-tidy modernize-use-default-member-init over LLDB Applied modernize-use-default-member-init clang-tidy check over LLDB. It appears in many files we had already switched to in class member init but never updated the constructors to reflect that. This check is already present in the lldb/.clang-tidy config. Differential Revision: https://reviews.llvm.org/D121481 --- lldb/source/Commands/CommandObjectThread.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lldb/source/Commands/CommandObjectThread.cpp') diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index bd491e5..0ad3cc0 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -2184,8 +2184,7 @@ public: nullptr, eCommandRequiresProcess | eCommandTryTargetAPILock | eCommandProcessMustBeLaunched | eCommandProcessMustBePaused | - eCommandProcessMustBeTraced), - m_create_repeat_command_just_invoked(false) {} + eCommandProcessMustBeTraced) {} ~CommandObjectTraceDumpInstructions() override = default; @@ -2253,7 +2252,7 @@ protected: // Repeat command helpers std::string m_repeat_command; - bool m_create_repeat_command_just_invoked; + bool m_create_repeat_command_just_invoked = false; std::map> m_dumpers; }; -- cgit v1.1