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:
-*,
cppcoreguidelines-special-member-functions,
readability-*,
-readability-else-after-return,
-readability-function-cognitive-complexity,

View File

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