Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Initialize data members with class initializers, or initialization lists.
[simgrid.git] / src / mc / inspect / Frame.hpp
index 0d653ed..a9526f4 100644 (file)
@@ -23,8 +23,6 @@ namespace mc {
 /** Debug information about a given function or scope within a function */
 class Frame {
 public:
-  Frame();
-
   /** Kind of scope (DW_TAG_subprogram, DW_TAG_inlined_subroutine, etc.) */
   int tag = DW_TAG_invalid;
 
@@ -32,7 +30,7 @@ public:
   std::string name;
 
   /** Range of instruction addresses for which this scope is valid */
-  simgrid::xbt::Range<std::uint64_t> range;
+  simgrid::xbt::Range<std::uint64_t> range{0, 0};
 
   simgrid::dwarf::LocationList frame_base_location;
 
@@ -59,15 +57,6 @@ public:
   void remove_variable(char* name);
 };
 
-inline Frame::Frame()
-{
-  this->tag                = 0;
-  this->range              = {0, 0};
-  this->id                 = 0;
-  this->abstract_origin_id = 0;
-  this->object_info        = nullptr;
-}
-
 } // namespace mc
 } // namespace simgrid