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/CommandObjectLog.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/CommandObjectLog.cpp')
| -rw-r--r-- | lldb/source/Commands/CommandObjectLog.cpp | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/lldb/source/Commands/CommandObjectLog.cpp b/lldb/source/Commands/CommandObjectLog.cpp index e68eaf1..8e29cd5 100644 --- a/lldb/source/Commands/CommandObjectLog.cpp +++ b/lldb/source/Commands/CommandObjectLog.cpp @@ -77,13 +77,12 @@ public: m_arguments.push_back (arg2); } - virtual - ~CommandObjectLogEnable() + ~CommandObjectLogEnable() override { } Options * - GetOptions () + GetOptions () override { return &m_options; } @@ -122,13 +121,12 @@ public: } - virtual - ~CommandOptions () + ~CommandOptions () override { } - virtual Error - SetOptionValue (uint32_t option_idx, const char *option_arg) + Error + SetOptionValue (uint32_t option_idx, const char *option_arg) override { Error error; const int short_option = m_getopt_table[option_idx].val; @@ -154,14 +152,14 @@ public: } void - OptionParsingStarting () + OptionParsingStarting () override { log_file.Clear(); log_options = 0; } const OptionDefinition* - GetDefinitions () + GetDefinitions () override { return g_option_table; } @@ -177,9 +175,9 @@ public: }; protected: - virtual bool + bool DoExecute (Args& args, - CommandReturnObject &result) + CommandReturnObject &result) override { if (args.GetArgumentCount() < 2) { @@ -260,15 +258,14 @@ public: m_arguments.push_back (arg2); } - virtual - ~CommandObjectLogDisable() + ~CommandObjectLogDisable() override { } protected: - virtual bool + bool DoExecute (Args& args, - CommandReturnObject &result) + CommandReturnObject &result) override { const size_t argc = args.GetArgumentCount(); if (argc == 0) @@ -332,15 +329,14 @@ public: m_arguments.push_back (arg); } - virtual - ~CommandObjectLogList() + ~CommandObjectLogList() override { } protected: - virtual bool + bool DoExecute (Args& args, - CommandReturnObject &result) + CommandReturnObject &result) override { const size_t argc = args.GetArgumentCount(); if (argc == 0) @@ -396,15 +392,14 @@ public: { } - virtual - ~CommandObjectLogTimer() + ~CommandObjectLogTimer() override { } protected: - virtual bool + bool DoExecute (Args& args, - CommandReturnObject &result) + CommandReturnObject &result) override { const size_t argc = args.GetArgumentCount(); result.SetStatus(eReturnStatusFailed); |
