Suppress Clang-Tidy warnings (#4276)

This commit is contained in:
Niels Lohmann
2024-01-28 14:04:07 +01:00
committed by GitHub
parent 6a064e026a
commit c35d260c2f
12 changed files with 36 additions and 35 deletions

View File

@@ -4847,7 +4847,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
auto it = val.m_data.m_value.object->find(member);
// context-sensitive error message
const auto error_msg = (op == "op") ? "operation" : detail::concat("operation '", op, '\'');
const auto error_msg = (op == "op") ? "operation" : detail::concat("operation '", op, '\''); // NOLINT(bugprone-unused-local-non-trivial-variable)
// check if desired value is present
if (JSON_HEDLEY_UNLIKELY(it == val.m_data.m_value.object->end()))