OSDN Git Service

Fix -Wmissing-override in lldb
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 25 Jan 2021 23:03:38 +0000 (15:03 -0800)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 25 Jan 2021 23:04:21 +0000 (15:04 -0800)
lldb/unittests/Process/ProcessEventDataTest.cpp
lldb/unittests/Target/ExecutionContextTest.cpp
lldb/unittests/Thread/ThreadTest.cpp

index a7a6369..8827384 100644 (file)
@@ -44,21 +44,21 @@ class DummyProcess : public Process {
 public:
   using Process::Process;
 
-  virtual bool CanDebug(lldb::TargetSP target, bool plugin_specified_by_name) {
+  bool CanDebug(lldb::TargetSP target, bool plugin_specified_by_name) override {
     return true;
   }
-  virtual Status DoDestroy() { return {}; }
-  virtual void RefreshStateAfterStop() {}
-  virtual size_t DoReadMemory(lldb::addr_t vm_addr, void *buf, size_t size,
-                              Status &error) {
+  Status DoDestroy() override { return {}; }
+  void RefreshStateAfterStop() override {}
+  size_t DoReadMemory(lldb::addr_t vm_addr, void *buf, size_t size,
+                      Status &error) override {
     return 0;
   }
   bool DoUpdateThreadList(ThreadList &old_thread_list,
                           ThreadList &new_thread_list) override {
     return false;
   }
-  virtual ConstString GetPluginName() { return ConstString("Dummy"); }
-  virtual uint32_t GetPluginVersion() { return 0; }
+  ConstString GetPluginName() override { return ConstString("Dummy"); }
+  uint32_t GetPluginVersion() override { return 0; }
 
   ProcessModID &GetModIDNonConstRef() { return m_mod_id; }
 };
index 3b85c2a..7456faf 100644 (file)
@@ -49,21 +49,21 @@ class DummyProcess : public Process {
 public:
   using Process::Process;
 
-  virtual bool CanDebug(lldb::TargetSP target, bool plugin_specified_by_name) {
+  bool CanDebug(lldb::TargetSP target, bool plugin_specified_by_name) override {
     return true;
   }
-  virtual Status DoDestroy() { return {}; }
-  virtual void RefreshStateAfterStop() {}
-  virtual size_t DoReadMemory(lldb::addr_t vm_addr, void *buf, size_t size,
-                              Status &error) {
+  Status DoDestroy() override { return {}; }
+  void RefreshStateAfterStop() override {}
+  size_t DoReadMemory(lldb::addr_t vm_addr, void *buf, size_t size,
+                      Status &error) override {
     return 0;
   }
   bool DoUpdateThreadList(ThreadList &old_thread_list,
                           ThreadList &new_thread_list) override {
     return false;
   }
-  virtual ConstString GetPluginName() { return ConstString("Dummy"); }
-  virtual uint32_t GetPluginVersion() { return 0; }
+  ConstString GetPluginName() override { return ConstString("Dummy"); }
+  uint32_t GetPluginVersion() override { return 0; }
 };
 } // namespace
 
index 11fbb75..a8387a5 100644 (file)
@@ -42,21 +42,21 @@ class DummyProcess : public Process {
 public:
   using Process::Process;
 
-  virtual bool CanDebug(lldb::TargetSP target, bool plugin_specified_by_name) {
+  bool CanDebug(lldb::TargetSP target, bool plugin_specified_by_name) override {
     return true;
   }
-  virtual Status DoDestroy() { return {}; }
-  virtual void RefreshStateAfterStop() {}
-  virtual size_t DoReadMemory(lldb::addr_t vm_addr, void *buf, size_t size,
-                              Status &error) {
+  Status DoDestroy() override { return {}; }
+  void RefreshStateAfterStop() override {}
+  size_t DoReadMemory(lldb::addr_t vm_addr, void *buf, size_t size,
+                      Status &error) override {
     return 0;
   }
   bool DoUpdateThreadList(ThreadList &old_thread_list,
                           ThreadList &new_thread_list) override {
     return false;
   }
-  virtual ConstString GetPluginName() { return ConstString("Dummy"); }
-  virtual uint32_t GetPluginVersion() { return 0; }
+  ConstString GetPluginName() override { return ConstString("Dummy"); }
+  uint32_t GetPluginVersion() override { return 0; }
 
   ProcessModID &GetModIDNonConstRef() { return m_mod_id; }
 };