From c2f41a5b278df2837f4cc5617df07248a048d93c Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 2 Mar 2022 21:24:34 +0100 Subject: refactor: add virtual destructors to interfaces This is required by clang++ for some reason... --- .clang-tidy | 1 + src/interfaces/argument_parser.hpp | 2 ++ src/interfaces/bounds.hpp | 2 ++ src/interfaces/game.hpp | 2 ++ src/interfaces/input.hpp | 2 ++ src/interfaces/matrix.hpp | 2 ++ src/interfaces/observable.hpp | 2 ++ src/interfaces/randomization.hpp | 4 ++++ src/interfaces/scene.hpp | 2 ++ src/interfaces/vector2.hpp | 2 ++ 10 files changed, 21 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index 6fffdc8..e22d9fe 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -11,6 +11,7 @@ Checks: ' -bugprone-lambda-function-name, -bugprone-reserved-identifier, -google-readability-braces-around-statements, + -cppcoreguidelines-special-member-functions, -modernize-return-braced-init-list, -modernize-use-trailing-return-type, -misc-non-private-member-variables-in-classes' diff --git a/src/interfaces/argument_parser.hpp b/src/interfaces/argument_parser.hpp index 222d9e0..fbf1b2a 100644 --- a/src/interfaces/argument_parser.hpp +++ b/src/interfaces/argument_parser.hpp @@ -15,6 +15,8 @@ struct ParsedArguments class IArgumentParser { public: + virtual ~IArgumentParser() = default; + virtual ParsedArguments parse(const std::vector