diff --git a/include/nlohmann/detail/input/lexer.hpp b/include/nlohmann/detail/input/lexer.hpp index ae159a8bb..8c13cd6d8 100644 --- a/include/nlohmann/detail/input/lexer.hpp +++ b/include/nlohmann/detail/input/lexer.hpp @@ -1862,7 +1862,7 @@ scan_number_done: @param[in] return_type the token type to return on success */ template - JSON_HEDLEY_NEVER_INLINE token_type scan_literal(const char (&rest)[N], token_type return_type) + JSON_HEDLEY_NEVER_INLINE token_type scan_literal(const char (&rest)[N], token_type return_type) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays) { constexpr std::size_t length = N - 1; if (scan_literal_bulk(rest, length, std::integral_constant {})) diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index dc0577942..06b0c907a 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -13857,7 +13857,7 @@ scan_number_done: @param[in] return_type the token type to return on success */ template - JSON_HEDLEY_NEVER_INLINE token_type scan_literal(const char (&rest)[N], token_type return_type) + JSON_HEDLEY_NEVER_INLINE token_type scan_literal(const char (&rest)[N], token_type return_type) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays) { constexpr std::size_t length = N - 1; if (scan_literal_bulk(rest, length, std::integral_constant {}))