Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Add "override" annotation.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 14 Oct 2019 16:23:25 +0000 (18:23 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 17 Oct 2019 10:01:26 +0000 (12:01 +0200)
include/simgrid/s4u/VirtualMachine.hpp
src/smpi/include/smpi_datatype_derived.hpp

index 5ea7916..25dfd3d 100644 (file)
@@ -44,7 +44,7 @@ public:
   void suspend();
   void resume();
   void shutdown();
-  void destroy();
+  void destroy() override;
 
   Host* get_pm();
   void set_pm(Host* pm);
index 890b4eb..28b9fa5 100644 (file)
@@ -21,8 +21,8 @@ public:
   Type_Contiguous(const Type_Contiguous&) = delete;
   Type_Contiguous& operator=(const Type_Contiguous&) = delete;
   ~Type_Contiguous();
-  void serialize(const void* noncontiguous, void* contiguous, int count);
-  void unserialize(const void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op);
+  void serialize(const void* noncontiguous, void* contiguous, int count) override;
+  void unserialize(const void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op) override;
 };
 
 class Type_Hvector: public Datatype{
@@ -37,8 +37,8 @@ public:
   Type_Hvector(const Type_Hvector&) = delete;
   Type_Hvector& operator=(const Type_Hvector&) = delete;
   ~Type_Hvector();
-  void serialize(const void* noncontiguous, void* contiguous, int count);
-  void unserialize(const void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op);
+  void serialize(const void* noncontiguous, void* contiguous, int count) override;
+  void unserialize(const void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op) override;
 };
 
 class Type_Vector : public Type_Hvector {
@@ -61,8 +61,8 @@ public:
   Type_Hindexed(const Type_Hindexed&) = delete;
   Type_Hindexed& operator=(const Type_Hindexed&) = delete;
   ~Type_Hindexed();
-  void serialize(const void* noncontiguous, void* contiguous, int count);
-  void unserialize(const void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op);
+  void serialize(const void* noncontiguous, void* contiguous, int count) override;
+  void unserialize(const void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op) override;
 };
 
 class Type_Indexed : public Type_Hindexed {
@@ -83,8 +83,8 @@ public:
   Type_Struct(const Type_Struct&) = delete;
   Type_Struct& operator=(const Type_Struct&) = delete;
   ~Type_Struct();
-  void serialize(const void* noncontiguous, void* contiguous, int count);
-  void unserialize(const void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op);
+  void serialize(const void* noncontiguous, void* contiguous, int count) override;
+  void unserialize(const void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op) override;
 };
 
 } // namespace smpi