From 5607cd181f56a2940522123ec8506ad06f140885 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 31 Oct 2026 07:21:48 +0000 Subject: [PATCH] tests: avoid astyle-mangled build<> call in json_view builder test astyle pads the template argument list of the build<...>() call with spaces because the second argument is a negated expression. Name the constant first (as json_view.hpp does with nul_is_end) so astyle leaves the call alone. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01N5NasBf4ToHzdcoNEPAJhS --- tests/src/unit-json_view_builder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/src/unit-json_view_builder.cpp b/tests/src/unit-json_view_builder.cpp index c41b5022f..88d3c9434 100644 --- a/tests/src/unit-json_view_builder.cpp +++ b/tests/src/unit-json_view_builder.cpp @@ -59,7 +59,8 @@ built build(const std::string& text, bool comments, bool trailing_commas, bool s r.copy.assign(text.begin(), text.end()); src = r.copy.data(); } - r.ok = nlohmann::detail::view::build < FloatType, !nlohmann::detail::abi_config::strict_nul_handling > (*r.data, src, text.size(), comments, trailing_commas, sentinel, false, r.failure); + constexpr bool nul_is_end = !nlohmann::detail::abi_config::strict_nul_handling; + r.ok = nlohmann::detail::view::build(*r.data, src, text.size(), comments, trailing_commas, sentinel, false, r.failure); r.data->src = src; r.data->base[0] = src; r.data->base[1] = r.data->arena.data();