aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorShafik Yaghmour <syaghmour@apple.com>2022-03-14 13:32:03 -0700
committerShafik Yaghmour <syaghmour@apple.com>2022-03-14 13:32:03 -0700
commit28c878aeb29a7e7a9ae8f748de6a3c41482b97be (patch)
tree6d057edb2aacc7705718950dedbf5c40cb758838 /lldb/source/Commands/CommandObjectCommands.cpp
parentc79ab1065e89872668b8d43c747ff3e5974b0d96 (diff)
downloadllvm-28c878aeb29a7e7a9ae8f748de6a3c41482b97be.zip
llvm-28c878aeb29a7e7a9ae8f748de6a3c41482b97be.tar.gz
llvm-28c878aeb29a7e7a9ae8f748de6a3c41482b97be.tar.bz2
[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
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectCommands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp
index a828ba1..7998c1f 100644
--- a/lldb/source/Commands/CommandObjectCommands.cpp
+++ b/lldb/source/Commands/CommandObjectCommands.cpp
@@ -1076,7 +1076,7 @@ public:
std::string funct, std::string help,
ScriptedCommandSynchronicity synch)
: CommandObjectRaw(interpreter, name), m_function_name(funct),
- m_synchro(synch), m_fetched_help_long(false) {
+ m_synchro(synch) {
if (!help.empty())
SetHelp(help);
else {
@@ -1139,7 +1139,7 @@ protected:
private:
std::string m_function_name;
ScriptedCommandSynchronicity m_synchro;
- bool m_fetched_help_long;
+ bool m_fetched_help_long = false;
};
class CommandObjectScriptingObject : public CommandObjectRaw {