Enable clang-tidy readability-static-accessed-through-instance check

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
This commit is contained in:
Sean Robinson 2022-02-07 14:29:32 -07:00
parent bd4837f240
commit c25a959597
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@ Checks:
readability-*, readability-*,
-readability-else-after-return, -readability-else-after-return,
-readability-function-cognitive-complexity, -readability-function-cognitive-complexity,
-readability-static-accessed-through-instance,
CheckOptions: CheckOptions:
- { key: readability-identifier-naming.ClassCase, value: CamelCase } - { key: readability-identifier-naming.ClassCase, value: CamelCase }

View File

@ -303,7 +303,7 @@ template <class T> struct parse_number<T, chars_format::scientific> {
throw std::invalid_argument{ throw std::invalid_argument{
"chars_format::scientific does not parse hexfloat"}; "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{ throw std::invalid_argument{
"chars_format::scientific requires exponent part"}; "chars_format::scientific requires exponent part"};
} }
@ -318,7 +318,7 @@ template <class T> struct parse_number<T, chars_format::fixed> {
throw std::invalid_argument{ throw std::invalid_argument{
"chars_format::fixed does not parse hexfloat"}; "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{ throw std::invalid_argument{
"chars_format::fixed does not parse exponent part"}; "chars_format::fixed does not parse exponent part"};
} }