diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2015-10-22 21:24:37 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2015-10-22 21:24:37 +0000 |
commit | 45a4014a503489e27bd7d0019873fde658be8ba0 (patch) | |
tree | 3421e0b8e3c36a707110828aff47409db17f2875 /lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.h | |
parent | e2dd2fd7c733729047329b8c81e40b8e3da64df8 (diff) | |
download | bcm5719-llvm-45a4014a503489e27bd7d0019873fde658be8ba0.tar.gz bcm5719-llvm-45a4014a503489e27bd7d0019873fde658be8ba0.zip |
Fix Clang-tidy modernize-use-override warnings in include/lldb/Disassembler and OperatingSystem; other minor fixes.
Second attempt which should work for MSVC.
llvm-svn: 251066
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.h')
-rw-r--r-- | lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.h | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.h b/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.h index b543f61be6a..d3391d907df 100644 --- a/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.h +++ b/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.h @@ -1,24 +1,32 @@ -//===-- OperatingSystemGo.h ----------------------------------*- C++ -*-===// +//===-- OperatingSystemGo.h -------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // -//===-------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// #ifndef _liblldb_OperatingSystemGo_h_ #define _liblldb_OperatingSystemGo_h_ -#include <iostream> +// C Includes +// C++ Includes +#include <memory> +// Other libraries and framework includes +// Project includes #include "lldb/Target/OperatingSystem.h" class DynamicRegisterInfo; class OperatingSystemGo : public lldb_private::OperatingSystem { - public: +public: + OperatingSystemGo(lldb_private::Process *process); + + ~OperatingSystemGo() override; + //------------------------------------------------------------------ // Static Functions //------------------------------------------------------------------ @@ -35,38 +43,32 @@ class OperatingSystemGo : public lldb_private::OperatingSystem static const char *GetPluginDescriptionStatic(); //------------------------------------------------------------------ - // Class Methods - //------------------------------------------------------------------ - OperatingSystemGo(lldb_private::Process *process); - - virtual ~OperatingSystemGo(); - - //------------------------------------------------------------------ // lldb_private::PluginInterface Methods //------------------------------------------------------------------ - virtual lldb_private::ConstString GetPluginName(); + lldb_private::ConstString GetPluginName() override; - virtual uint32_t GetPluginVersion(); + uint32_t GetPluginVersion() override; //------------------------------------------------------------------ // lldb_private::OperatingSystem Methods //------------------------------------------------------------------ - virtual bool UpdateThreadList(lldb_private::ThreadList &old_thread_list, lldb_private::ThreadList &real_thread_list, - lldb_private::ThreadList &new_thread_list); + bool UpdateThreadList(lldb_private::ThreadList &old_thread_list, + lldb_private::ThreadList &real_thread_list, + lldb_private::ThreadList &new_thread_list) override; - virtual void ThreadWasSelected(lldb_private::Thread *thread); + void ThreadWasSelected(lldb_private::Thread *thread) override; - virtual lldb::RegisterContextSP CreateRegisterContextForThread(lldb_private::Thread *thread, - lldb::addr_t reg_data_addr); + lldb::RegisterContextSP CreateRegisterContextForThread(lldb_private::Thread *thread, + lldb::addr_t reg_data_addr) override; - virtual lldb::StopInfoSP CreateThreadStopReason(lldb_private::Thread *thread); + lldb::StopInfoSP CreateThreadStopReason(lldb_private::Thread *thread) override; //------------------------------------------------------------------ // Method for lazy creation of threads on demand //------------------------------------------------------------------ - virtual lldb::ThreadSP CreateThread(lldb::tid_t tid, lldb::addr_t context); + lldb::ThreadSP CreateThread(lldb::tid_t tid, lldb::addr_t context) override; - private: +private: struct Goroutine; static lldb::ValueObjectSP FindGlobal(lldb::TargetSP target, const char *name); @@ -82,4 +84,4 @@ class OperatingSystemGo : public lldb_private::OperatingSystem lldb::ValueObjectSP m_allglen_sp; }; -#endif // #ifndef liblldb_OperatingSystemGo_h_ +#endif // liblldb_OperatingSystemGo_h_ |