mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 14:44:40 +00:00
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:
parent
c25a959597
commit
0b74da54d4
@ -1,5 +1,6 @@
|
||||
Checks:
|
||||
-*,
|
||||
cppcoreguidelines-special-member-functions,
|
||||
readability-*,
|
||||
-readability-else-after-return,
|
||||
-readability-function-cognitive-complexity,
|
||||
|
@ -910,6 +910,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
~ArgumentParser() = default;
|
||||
|
||||
ArgumentParser &operator=(const ArgumentParser &other) {
|
||||
auto tmp = other;
|
||||
std::swap(*this, tmp);
|
||||
|
Loading…
Reference in New Issue
Block a user