diff --git a/.clang-tidy b/.clang-tidy index 419f5ee..c1dd300 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -3,7 +3,6 @@ Checks: readability-*, -readability-else-after-return, -readability-function-cognitive-complexity, - -readability-static-accessed-through-instance, CheckOptions: - { key: readability-identifier-naming.ClassCase, value: CamelCase } diff --git a/include/argparse/argparse.hpp b/include/argparse/argparse.hpp index ddade05..112dbb0 100644 --- a/include/argparse/argparse.hpp +++ b/include/argparse/argparse.hpp @@ -303,7 +303,7 @@ template struct parse_number { throw std::invalid_argument{ "chars_format::scientific does not parse hexfloat"}; } - if (s.find_first_of("eE") == s.npos) { + if (s.find_first_of("eE") == std::string::npos) { throw std::invalid_argument{ "chars_format::scientific requires exponent part"}; } @@ -318,7 +318,7 @@ template struct parse_number { throw std::invalid_argument{ "chars_format::fixed does not parse hexfloat"}; } - if (s.find_first_of("eE") != s.npos) { + if (s.find_first_of("eE") != std::string::npos) { throw std::invalid_argument{ "chars_format::fixed does not parse exponent part"}; }