Enable clang-tidy cppcoreguidelines-special-member-functions check

Also adds a default destructor, as recommended by the check.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
This commit is contained in:
Sean Robinson 2022-02-07 14:29:32 -07:00
parent c25a959597
commit 0b74da54d4
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Checks: Checks:
-*, -*,
cppcoreguidelines-special-member-functions,
readability-*, readability-*,
-readability-else-after-return, -readability-else-after-return,
-readability-function-cognitive-complexity, -readability-function-cognitive-complexity,

View File

@ -910,6 +910,8 @@ public:
} }
} }
~ArgumentParser() = default;
ArgumentParser &operator=(const ArgumentParser &other) { ArgumentParser &operator=(const ArgumentParser &other) {
auto tmp = other; auto tmp = other;
std::swap(*this, tmp); std::swap(*this, tmp);