mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Enable clang-tidy readability-container-size-empty check
Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
This commit is contained in:
parent
158b8a0d2f
commit
6a8b1318ec
@ -1,7 +1,6 @@
|
|||||||
Checks:
|
Checks:
|
||||||
-*,
|
-*,
|
||||||
readability-*,
|
readability-*,
|
||||||
-readability-container-size-empty,
|
|
||||||
-readability-else-after-return,
|
-readability-else-after-return,
|
||||||
-readability-implicit-bool-conversion,
|
-readability-implicit-bool-conversion,
|
||||||
-readability-function-cognitive-complexity,
|
-readability-function-cognitive-complexity,
|
||||||
|
@ -525,7 +525,7 @@ public:
|
|||||||
stream << mNames[0] << ": required.";
|
stream << mNames[0] << ": required.";
|
||||||
throw std::runtime_error(stream.str());
|
throw std::runtime_error(stream.str());
|
||||||
}
|
}
|
||||||
if (mIsUsed && mIsRequired && mValues.size() == 0) {
|
if (mIsUsed && mIsRequired && mValues.empty()) {
|
||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
stream << mUsedName << ": no value provided.";
|
stream << mUsedName << ": no value provided.";
|
||||||
throw std::runtime_error(stream.str());
|
throw std::runtime_error(stream.str());
|
||||||
|
Loading…
Reference in New Issue
Block a user