Nicholas-Baron
c4ede38542
Everything: Add -Wnon-virtual-dtor flag
...
This flag warns on classes which have `virtual` functions but do not
have a `virtual` destructor.
This patch adds both the flag and missing destructors. The access level
of the destructors was determined by a two rules of thumb:
1. A destructor should have a similar or lower access level to that of a
constructor.
2. Having a `private` destructor implicitly deletes the default
constructor, which is probably undesirable for "interface" types
(classes with only virtual functions and no data).
In short, most of the added destructors are `protected`, unless the
compiler complained about access.
2021-04-15 20:57:13 +02:00
..
2021-04-15 20:57:13 +02:00
2021-03-17 23:22:42 +01:00
2021-04-06 22:25:28 +02:00
2021-04-08 22:17:13 +02:00
2021-04-12 18:03:44 +02:00
2021-04-09 17:08:49 +02:00
2021-04-15 20:57:13 +02:00
2021-03-12 17:29:37 +01:00
2021-04-13 21:52:34 +02:00
2021-04-15 20:57:13 +02:00
2021-04-13 21:52:34 +02:00
2021-04-14 13:12:52 +02:00
2021-03-02 08:36:08 +01:00
2021-03-21 09:35:23 +01:00
2021-04-03 11:57:23 +02:00
2021-04-12 18:03:44 +02:00
2021-01-30 09:18:46 +01:00
2021-02-15 11:41:53 +01:00
2021-02-15 11:41:53 +01:00
2021-02-23 21:11:53 +01:00
2021-04-14 21:49:54 +02:00
2021-04-08 22:17:13 +02:00
2021-04-08 22:17:13 +02:00
2021-03-17 23:22:42 +01:00
2021-03-17 23:22:42 +01:00
2021-04-12 18:03:44 +02:00
2021-02-28 18:09:12 +01:00
2021-04-03 11:57:23 +02:00
2021-03-12 17:29:37 +01:00
2021-02-01 17:13:23 +01:00
2021-02-23 20:56:54 +01:00
2021-02-23 20:56:54 +01:00
2021-03-21 13:41:09 +01:00
2021-02-23 20:56:54 +01:00
2021-01-17 20:30:31 +01:00
2021-04-07 22:47:22 +02:00
2021-03-21 09:35:23 +01:00
2021-03-12 17:29:37 +01:00
2021-02-14 10:01:50 +01:00
2021-02-28 18:09:12 +01:00
2021-03-12 17:29:37 +01:00
2021-03-04 11:01:48 +01:00
2021-03-12 17:29:37 +01:00
2021-03-12 15:22:35 +01:00
2021-02-25 16:27:12 +01:00
2021-03-04 18:25:01 +01:00
2021-02-23 20:56:54 +01:00
2021-03-21 09:35:23 +01:00
2021-01-22 22:17:39 +01:00
2021-03-21 09:35:23 +01:00
2021-02-14 09:36:58 +01:00
2021-04-12 18:03:44 +02:00
2021-03-02 22:38:06 +01:00
2021-03-12 17:29:37 +01:00
2021-04-04 20:13:55 +02:00
2021-04-04 20:13:55 +02:00
2021-03-21 09:35:23 +01:00
2021-03-21 09:35:23 +01:00
2021-03-12 17:29:37 +01:00
2021-03-02 22:38:06 +01:00
2021-02-07 20:45:09 +01:00
2021-03-21 09:35:23 +01:00
2021-04-08 23:57:16 +02:00
2021-04-10 21:01:31 +02:00
2021-04-14 21:49:54 +02:00
2021-03-31 23:49:26 +02:00
2021-03-30 11:50:48 +02:00
2021-03-15 21:21:52 +01:00
2021-03-21 09:35:23 +01:00
2021-02-23 20:56:54 +01:00
2021-03-02 08:36:08 +01:00
2021-03-02 08:36:08 +01:00
2021-03-07 17:31:25 +01:00
2021-03-07 17:31:25 +01:00
2021-03-17 23:22:42 +01:00
2021-02-26 16:59:56 +01:00
2021-02-23 20:56:54 +01:00
2021-03-12 17:29:37 +01:00
2021-02-23 20:56:54 +01:00
2021-02-15 08:28:57 +01:00
2021-03-26 16:54:05 +01:00
2021-03-26 16:54:05 +01:00