diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-10-07 16:56:17 +0000 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-10-07 16:56:17 +0000 |
commit | 13d21e9ae103e4901416ebfdabd47ccf67a80d38 (patch) | |
tree | ab40a63d10f6c8b52b16769230fbfec3bc8af287 /lldb/source/Commands/CommandObjectRegister.cpp | |
parent | b8269c7228a6b25795b0bd414262b9e788a0f0e3 (diff) | |
download | llvm-13d21e9ae103e4901416ebfdabd47ccf67a80d38.zip llvm-13d21e9ae103e4901416ebfdabd47ccf67a80d38.tar.gz llvm-13d21e9ae103e4901416ebfdabd47ccf67a80d38.tar.bz2 |
commands: Use override instead of virtual.
Summary:
This removes all uses of virtual on functions
where override could be used, including on destructors.
It also adds override where virtual was previously
missing.
Reviewers: clayborg, labath
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D13503
llvm-svn: 249564
Diffstat (limited to 'lldb/source/Commands/CommandObjectRegister.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectRegister.cpp | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/lldb/source/Commands/CommandObjectRegister.cpp b/lldb/source/Commands/CommandObjectRegister.cpp index fae5af4..23a2157 100644 --- a/lldb/source/Commands/CommandObjectRegister.cpp +++ b/lldb/source/Commands/CommandObjectRegister.cpp @@ -74,13 +74,12 @@ public: } - virtual - ~CommandObjectRegisterRead () + ~CommandObjectRegisterRead () override { } Options * - GetOptions () + GetOptions () override { return &m_option_group; } @@ -170,8 +169,8 @@ public: } protected: - virtual bool - DoExecute (Args& command, CommandReturnObject &result) + bool + DoExecute (Args& command, CommandReturnObject &result) override { Stream &strm = result.GetOutputStream(); RegisterContext *reg_ctx = m_exe_ctx.GetRegisterContext (); @@ -271,33 +270,32 @@ protected: { } - virtual - ~CommandOptions () + ~CommandOptions () override { } - virtual uint32_t - GetNumDefinitions (); + uint32_t + GetNumDefinitions () override; - virtual const OptionDefinition* - GetDefinitions () + const OptionDefinition* + GetDefinitions () override { return g_option_table; } - virtual void - OptionParsingStarting (CommandInterpreter &interpreter) + void + OptionParsingStarting (CommandInterpreter &interpreter) override { set_indexes.Clear(); dump_all_sets.Clear(); alternate_name.Clear(); } - virtual Error + Error SetOptionValue (CommandInterpreter &interpreter, uint32_t option_idx, - const char *option_value) + const char *option_value) override { Error error; const int short_option = g_option_table[option_idx].short_option; @@ -404,14 +402,13 @@ public: m_arguments.push_back (arg2); } - virtual - ~CommandObjectRegisterWrite () + ~CommandObjectRegisterWrite () override { } protected: - virtual bool - DoExecute(Args& command, CommandReturnObject &result) + bool + DoExecute(Args& command, CommandReturnObject &result) override { DataExtractor reg_data; RegisterContext *reg_ctx = m_exe_ctx.GetRegisterContext (); |