Files
json/tests
Niels Lohmann 282079ba82 Fix clang-tidy findings in unit-json_view_from_json.cpp (#5954)
* Fix clang-tidy findings in unit-json_view_from_json.cpp

Silence misc-use-internal-linkage on the macro-generated ADL functions,
reconcile -Weffc++ with readability-redundant-member-init, use auto for
get<T>() initializers, and use value() on the optional access.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* Satisfy bugprone-unchecked-optional-access in unit-json_view_from_json.cpp

clang-tidy 22 also flags value(); check has_value() in the same expression.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

---------

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
2026-10-28 19:44:53 +01:00
..