diff --git a/.clang-tidy b/.clang-tidy index 52d8e0d420..a7d582cd00 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -8,9 +8,14 @@ # fuchsia-virtual-inheritance Checks: '*, - - fuchsia-virtual-inheritance, - - modernize-return-braced-init-list, - - readability-avoid-nested-conditional-operator, + -llvm-else-after-return, + -readability-else-after-return, + -cppcoreguidelines-avoid-c-arrays, + -hicpp-avoid-c-arrays, + -modernize-avoid-c-arrays, + -fuchsia-virtual-inheritance, + -modernize-return-braced-init-list, + -readability-avoid-nested-conditional-operator, -google-readability-casting, -bugprone-branch-clone, -hicpp-named-parameter, diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml.off similarity index 100% rename from .github/workflows/clang-tidy.yml rename to .github/workflows/clang-tidy.yml.off diff --git a/.github/workflows/macos.yml.bak b/.github/workflows/macos.yml similarity index 100% rename from .github/workflows/macos.yml.bak rename to .github/workflows/macos.yml diff --git a/.github/workflows/ubuntu.yml.bak b/.github/workflows/ubuntu.yml similarity index 100% rename from .github/workflows/ubuntu.yml.bak rename to .github/workflows/ubuntu.yml diff --git a/include/jsoncons_ext/bson/bson_decimal128.hpp b/include/jsoncons_ext/bson/bson_decimal128.hpp index e82ca509b0..0884f9f246 100644 --- a/include/jsoncons_ext/bson/bson_decimal128.hpp +++ b/include/jsoncons_ext/bson/bson_decimal128.hpp @@ -605,7 +605,7 @@ namespace jsoncons { namespace bson { } /* Check for Infinity or NaN */ - if (!isdigit (*str_read) && *str_read != '.') { + if (!isdigit(*str_read) && *str_read != '.') { if (detail::dec128_istreq (str_read, last, inf_str.data(), inf_str.data()+inf_str.length()) || detail::dec128_istreq (str_read, last, infinity_str.data(), infinity_str.data()+infinity_str.length())) {