diff --git a/src/angle.h b/src/angle.h index 3a6521003e..12443fa4f3 100644 --- a/src/angle.h +++ b/src/angle.h @@ -43,7 +43,7 @@ class Angle : protected Pointers { int copymode; Angle(class LAMMPS *); - virtual ~Angle(); + ~Angle() override; virtual void init(); virtual void compute(int, int) = 0; virtual void settings(int, char **) {} diff --git a/src/atom.h b/src/atom.h index 25a56de1c4..ad8349d11c 100644 --- a/src/atom.h +++ b/src/atom.h @@ -284,7 +284,7 @@ class Atom : protected Pointers { // functions Atom(class LAMMPS *); - virtual ~Atom(); + ~Atom() override; void settings(class Atom *); void peratom_create(); diff --git a/src/atom_vec.h b/src/atom_vec.h index 6bc7f23532..ad1c7f3315 100644 --- a/src/atom_vec.h +++ b/src/atom_vec.h @@ -68,7 +68,7 @@ class AtomVec : protected Pointers { // methods AtomVec(class LAMMPS *); - virtual ~AtomVec(); + ~AtomVec() override; void store_args(int, char **); virtual void process_args(int, char **); diff --git a/src/bond.h b/src/bond.h index b2b2008b9e..9b9f35180a 100644 --- a/src/bond.h +++ b/src/bond.h @@ -39,7 +39,7 @@ class Bond : protected Pointers { int copymode; Bond(class LAMMPS *); - virtual ~Bond(); + ~Bond() override; virtual void init(); virtual void init_style() {} virtual void compute(int, int) = 0; diff --git a/src/compute.h b/src/compute.h index 05fded9b44..ef57754b18 100644 --- a/src/compute.h +++ b/src/compute.h @@ -104,7 +104,7 @@ class Compute : protected Pointers { int copymode, kokkosable; Compute(class LAMMPS *, int, char **); - virtual ~Compute(); + ~Compute() override; void modify_params(int, char **); void reset_extra_dof(); diff --git a/src/dihedral.h b/src/dihedral.h index 81daeef201..7bb7eb2650 100644 --- a/src/dihedral.h +++ b/src/dihedral.h @@ -43,7 +43,7 @@ class Dihedral : protected Pointers { int copymode; Dihedral(class LAMMPS *); - virtual ~Dihedral(); + ~Dihedral() override; virtual void init(); virtual void init_style() {} virtual void compute(int, int) = 0; diff --git a/src/fix.h b/src/fix.h index 339da03734..a83b032172 100644 --- a/src/fix.h +++ b/src/fix.h @@ -130,7 +130,7 @@ class Fix : protected Pointers { unsigned int datamask_read, datamask_modify; Fix(class LAMMPS *, int, char **); - virtual ~Fix(); + ~Fix() override; void modify_params(int, char **); virtual int setmask() = 0; diff --git a/src/force.h b/src/force.h index 09e13c7bd1..df00887ed0 100644 --- a/src/force.h +++ b/src/force.h @@ -117,7 +117,7 @@ class Force : protected Pointers { int special_extra; // extra space for added bonds Force(class LAMMPS *); - ~Force(); + ~Force() override; void init(); void setup(); diff --git a/src/improper.h b/src/improper.h index 1f88204a6b..dbe8bee3f1 100644 --- a/src/improper.h +++ b/src/improper.h @@ -43,7 +43,7 @@ class Improper : protected Pointers { int copymode; Improper(class LAMMPS *); - virtual ~Improper(); + ~Improper() override; virtual void init(); virtual void init_style() {} virtual void compute(int, int) = 0; diff --git a/src/integrate.h b/src/integrate.h index e38fad79dc..e2bf3d33e1 100644 --- a/src/integrate.h +++ b/src/integrate.h @@ -21,7 +21,7 @@ namespace LAMMPS_NS { class Integrate : protected Pointers { public: Integrate(class LAMMPS *, int, char **); - virtual ~Integrate(); + ~Integrate() override; virtual void init(); virtual void setup(int flag) = 0; virtual void setup_minimal(int) = 0; diff --git a/src/kspace.h b/src/kspace.h index 22453d51a8..68d169ea97 100644 --- a/src/kspace.h +++ b/src/kspace.h @@ -100,7 +100,7 @@ class KSpace : protected Pointers { double splittol; // tolerance for when to truncate splitting KSpace(class LAMMPS *); - virtual ~KSpace(); + ~KSpace() override; void two_charge(); void triclinic_check(); void modify_params(int, char **); diff --git a/src/modify.h b/src/modify.h index c4f8c2ef02..e340012b04 100644 --- a/src/modify.h +++ b/src/modify.h @@ -53,7 +53,7 @@ class Modify : protected Pointers { Compute **compute; // list of computes Modify(class LAMMPS *); - virtual ~Modify(); + ~Modify() override; virtual void init(); virtual void setup(int); virtual void setup_pre_exchange(); diff --git a/src/neigh_list.h b/src/neigh_list.h index 8b920bbe50..abd9b8205e 100644 --- a/src/neigh_list.h +++ b/src/neigh_list.h @@ -102,7 +102,7 @@ class NeighList : protected Pointers { // methods NeighList(class LAMMPS *); - virtual ~NeighList(); + ~NeighList() override; void post_constructor(class NeighRequest *); void setup_pages(int, int); // setup page data structures void grow(int, int); // grow all data structs diff --git a/src/neighbor.h b/src/neighbor.h index a64e52fdbb..60687525a3 100644 --- a/src/neighbor.h +++ b/src/neighbor.h @@ -117,7 +117,7 @@ class Neighbor : protected Pointers { // public methods Neighbor(class LAMMPS *); - virtual ~Neighbor(); + ~Neighbor() override; virtual void init(); int request(void *, int instance = 0); int decide(); // decide whether to build or not diff --git a/src/output.h b/src/output.h index 3f557bdef5..14c1de6522 100644 --- a/src/output.h +++ b/src/output.h @@ -71,7 +71,7 @@ class Output : protected Pointers { DumpCreatorMap *dump_map; Output(class LAMMPS *); - ~Output(); + ~Output() override; void init(); void setup(int memflag = 1); // initial output before run/min void write(bigint); // output for current timestep diff --git a/src/pair.h b/src/pair.h index 00e6734773..a61af0c1da 100644 --- a/src/pair.h +++ b/src/pair.h @@ -123,7 +123,7 @@ class Pair : protected Pointers { int kokkosable; // 1 if Kokkos pair Pair(class LAMMPS *); - virtual ~Pair(); + ~Pair() override; // top-level Pair methods diff --git a/src/thermo.h b/src/thermo.h index 89678614a7..9eca4df18b 100644 --- a/src/thermo.h +++ b/src/thermo.h @@ -34,7 +34,7 @@ class Thermo : protected Pointers { enum { INT, FLOAT, BIGINT }; Thermo(class LAMMPS *, int, char **); - ~Thermo(); + ~Thermo() override; void init(); bigint lost_check(); void modify_params(int, char **); diff --git a/src/timer.h b/src/timer.h index a1fb592e43..245a81d660 100644 --- a/src/timer.h +++ b/src/timer.h @@ -44,7 +44,7 @@ class Timer : protected Pointers { enum tlevel { OFF = 0, LOOP, NORMAL, FULL }; Timer(class LAMMPS *); - ~Timer(){}; + ~Timer() override = default; void init(); // inline function to reduce overhead if we want no detailed timings diff --git a/src/universe.h b/src/universe.h index 30644dcd6d..3e5710a301 100644 --- a/src/universe.h +++ b/src/universe.h @@ -37,7 +37,7 @@ class Universe : protected Pointers { // proc uni2orig[I] in original communicator Universe(class LAMMPS *, MPI_Comm); - ~Universe(); + ~Universe() override; void reorder(char *, char *); void add_world(char *); int consistent();