summaryrefslogtreecommitdiff
path: root/src/utils/cpp/json.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-10-04 14:42:28 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-10-07 15:20:41 +0200
commit0fc0d9118b5e525fa582de0286c8e83bb0da4e16 (patch)
tree23acbc464d5f15ef16432fc9277de3a4a8abcb9d /src/utils/cpp/json.hpp
parente5a6474d0b2a41586b1c7ead20f2098c8dc977e2 (diff)
downloadjustbuild-0fc0d9118b5e525fa582de0286c8e83bb0da4e16.tar.gz
Disable misc-no-recursion check
...since we use recursion for trees a lot, but skip this check manually.
Diffstat (limited to 'src/utils/cpp/json.hpp')
-rw-r--r--src/utils/cpp/json.hpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/utils/cpp/json.hpp b/src/utils/cpp/json.hpp
index 1fe4df3f..589a5884 100644
--- a/src/utils/cpp/json.hpp
+++ b/src/utils/cpp/json.hpp
@@ -50,7 +50,6 @@ auto ExtractValueAs(
namespace detail {
-// NOLINTNEXTLINE(misc-no-recursion)
[[nodiscard]] static inline auto IndentListsOnlyUntilDepth(
nlohmann::json const& json,
std::string const& indent,
@@ -89,7 +88,6 @@ namespace detail {
return json.dump();
}
-// NOLINTNEXTLINE(misc-no-recursion)
[[nodiscard]] static inline auto IndentOnlyUntilDepth(
nlohmann::json const& json,
std::string const& indent,
@@ -164,7 +162,6 @@ namespace detail {
}
// \brief Dump json, replacing subexpressions at the given depths by "*".
-// NOLINTNEXTLINE(misc-no-recursion)
[[nodiscard]] static inline auto TruncateJson(nlohmann::json const& json,
std::size_t depth)
-> std::string {