[PATCH 3/8] Add some override specifiers where missing

Tom Stellard tstellar@redhat.com
Mon Nov 30 19:58:36 GMT 2020


From: Timm Bäder <tbaeder@redhat.com>

---
 elaborate.h   | 4 ++--
 translate.cxx | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/elaborate.h b/elaborate.h
index ee68e7b0b..860068620 100644
--- a/elaborate.h
+++ b/elaborate.h
@@ -207,8 +207,8 @@ struct derived_probe: public probe
   // return arguments of probe if there
   virtual void getargs (std::list<std::string> &) const {}
   void printsig_nested (std::ostream &o) const;
-  virtual void collect_derivation_chain (std::vector<probe*> &probes_list) const;
-  virtual void collect_derivation_pp_chain (std::vector<probe_point*> &pp_list) const;
+  virtual void collect_derivation_chain (std::vector<probe*> &probes_list) const override;
+  virtual void collect_derivation_pp_chain (std::vector<probe_point*> &pp_list) const override;
   std::string derived_locations (bool firstFrom = true);
 
   virtual void print_dupe_stamp(std::ostream&) {}
diff --git a/translate.cxx b/translate.cxx
index 53f1d0725..f763c2277 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -300,8 +300,8 @@ struct c_tmpcounter cxx_final: public c_unparser
   // var_declare(), which will forward to the parent c_unparser for output;
   void var_declare(string const&, var const& v) cxx_override;
 
-  void emit_function (functiondecl* fd);
-  void emit_probe (derived_probe* dp);
+  void emit_function (functiondecl* fd) override;
+  void emit_probe (derived_probe* dp) override;
 
   const string& get_compiled_printf (bool print_to_stream,
 				     const string& format) cxx_override;
-- 
2.26.2



More information about the Systemtap mailing list