From 10c0d41f7c4e007131ddb82ff19994c89ec79ff7 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Mon, 28 Sep 2026 18:01:10 +0200 Subject: [PATCH] Silence clang-tidy for the hidden type_name() in the base class test ci_clang_tidy failed with readability-convert-member-functions-to-static on base_class_with_hidden_members::type_name(). It must stay a non-static member: the test shows that it is hidden by the non-static basic_json::type_name() and reachable through as_base_class(). Signed-off-by: Niels Lohmann --- tests/src/unit-custom-base-class.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/unit-custom-base-class.cpp b/tests/src/unit-custom-base-class.cpp index c4b1dede8..82cce3a1d 100644 --- a/tests/src/unit-custom-base-class.cpp +++ b/tests/src/unit-custom-base-class.cpp @@ -340,7 +340,7 @@ TEST_CASE("JSON Visit Node") class base_class_with_hidden_members { public: - const char* type_name() const noexcept + const char* type_name() const noexcept // NOLINT(readability-convert-member-functions-to-static) { return "custom type_name"; }