mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Enable clang-tidy readability-static-accessed-through-instance check
Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
This commit is contained in:
parent
bd4837f240
commit
c25a959597
@ -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 }
|
||||
|
@ -303,7 +303,7 @@ template <class T> struct parse_number<T, chars_format::scientific> {
|
||||
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 <class T> struct parse_number<T, chars_format::fixed> {
|
||||
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"};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user