diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2021-06-09 09:25:29 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2021-06-09 09:43:13 -0700 |
commit | 9494c510af56d9c8593ab69017dcaa232210b235 (patch) | |
tree | d3bf62416d4a5423563c5b2893f2392a9f96e12f /lldb/source/Commands/CommandObjectWatchpoint.cpp | |
parent | 9b496c2373dc4228726b6b3813bf759233e98094 (diff) | |
download | llvm-9494c510af56d9c8593ab69017dcaa232210b235.zip llvm-9494c510af56d9c8593ab69017dcaa232210b235.tar.gz llvm-9494c510af56d9c8593ab69017dcaa232210b235.tar.bz2 |
[lldb] Use C++11 default member initializers
This converts a default constructor's member initializers into C++11
default member initializers. This patch was automatically generated with
clang-tidy and the modernize-use-default-member-init check.
$ run-clang-tidy.py -header-filter='lldb' -checks='-*,modernize-use-default-member-init' -fix
This is a mass-refactoring patch and this commit will be added to
.git-blame-ignore-revs.
Differential revision: https://reviews.llvm.org/D103483
Diffstat (limited to 'lldb/source/Commands/CommandObjectWatchpoint.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectWatchpoint.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/lldb/source/Commands/CommandObjectWatchpoint.cpp b/lldb/source/Commands/CommandObjectWatchpoint.cpp index e7b1f31..b8be19f 100644 --- a/lldb/source/Commands/CommandObjectWatchpoint.cpp +++ b/lldb/source/Commands/CommandObjectWatchpoint.cpp @@ -166,11 +166,7 @@ public: class CommandOptions : public Options { public: - CommandOptions() - : Options(), - m_level(lldb::eDescriptionLevelBrief) // Watchpoint List defaults to - // brief descriptions - {} + CommandOptions() : Options() {} ~CommandOptions() override = default; @@ -206,7 +202,7 @@ public: // Instance variables to hold the values for command options. - lldb::DescriptionLevel m_level; + lldb::DescriptionLevel m_level = lldb::eDescriptionLevelBrief; }; protected: @@ -467,7 +463,7 @@ public: class CommandOptions : public Options { public: - CommandOptions() : Options(), m_force(false) {} + CommandOptions() : Options() {} ~CommandOptions() override = default; @@ -495,7 +491,7 @@ public: } // Instance variables to hold the values for command options. - bool m_force; + bool m_force = false; }; protected: @@ -593,7 +589,7 @@ public: class CommandOptions : public Options { public: - CommandOptions() : Options(), m_ignore_count(0) {} + CommandOptions() : Options() {} ~CommandOptions() override = default; @@ -625,7 +621,7 @@ public: // Instance variables to hold the values for command options. - uint32_t m_ignore_count; + uint32_t m_ignore_count = 0; }; protected: @@ -721,7 +717,7 @@ public: class CommandOptions : public Options { public: - CommandOptions() : Options(), m_condition(), m_condition_passed(false) {} + CommandOptions() : Options(), m_condition() {} ~CommandOptions() override = default; @@ -754,7 +750,7 @@ public: // Instance variables to hold the values for command options. std::string m_condition; - bool m_condition_passed; + bool m_condition_passed = false; }; protected: |