From f6ae40bd0780bd9bb5f0fdcfc4c35396a9c27647 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 19 Oct 2023 21:54:15 -0700 Subject: [PATCH] clang-tidy compatibility --- include/pybind11/typing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/typing.h b/include/pybind11/typing.h index 6c2bea28a..c489c6d3a 100644 --- a/include/pybind11/typing.h +++ b/include/pybind11/typing.h @@ -114,7 +114,7 @@ struct handle_type_name> { }; inline bool cpp_name_needs_typing_annotated(const char *cpp_name) { - while (*cpp_name) { + while (*cpp_name != '\0') { char c = *cpp_name++; if (c == ':' || c == '<') { // Assuming valid names, there is no need to check for '>'. return true;