From 7026938082bbd44a6a74fc669143083faf4a707c Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Thu, 15 May 2025 17:21:58 -0700 Subject: [PATCH] bifcl: Pass boolean false to BuiltinFunc constructor instead of zero This fixes a modernize-use-bool-literals clang-tidy warning in the generated code. --- tools/bifcl/builtin-func.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bifcl/builtin-func.y b/tools/bifcl/builtin-func.y index c8de523d24..901f7892fd 100644 --- a/tools/bifcl/builtin-func.y +++ b/tools/bifcl/builtin-func.y @@ -584,7 +584,7 @@ head_1: TOK_ID opt_ws arg_begin if ( definition_type == FUNC_DEF ) { fprintf(fp_func_init, - "\t(void) new zeek::detail::BuiltinFunc(zeek::%s_bif, \"%s\", 0);\n", + "\t(void) new zeek::detail::BuiltinFunc(zeek::%s_bif, \"%s\", false);\n", decl.c_fullname.c_str(), decl.zeek_fullname.c_str()); // This is the "canonical" version, with argument type and order