mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +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:
|
Checks:
|
||||||
-*,
|
-*,
|
||||||
|
cppcoreguidelines-special-member-functions,
|
||||||
readability-*,
|
readability-*,
|
||||||
-readability-else-after-return,
|
-readability-else-after-return,
|
||||||
-readability-function-cognitive-complexity,
|
-readability-function-cognitive-complexity,
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user