From bdea29c4142471b183f35433bde7dec49f757232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Mon, 24 Mar 2025 13:38:10 +0100 Subject: [PATCH] Fix #13875: [Script] be less strict about empty constructor format for doxygen (#13882) --- src/script/api/doxygen_filter.awk | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/script/api/doxygen_filter.awk b/src/script/api/doxygen_filter.awk index 1f317296f6..086cecd864 100644 --- a/src/script/api/doxygen_filter.awk +++ b/src/script/api/doxygen_filter.awk @@ -84,9 +84,6 @@ BEGIN { api_selected = "false" } public = "false" - cls_param[0] = "" - cls_param[1] = 1 - cls_param[2] = "x" cls_in_api = api_selected api_selected = "" cls = $2 @@ -275,8 +272,10 @@ BEGIN { /^.*\(.*\).*$/ { if (cls_level != 1) next if (!match($0, ";")) { - gsub(/ :$/, ";") - skip_function_body = "true" + if (!match($0, "}$")) { + skip_function_body = "true" + } + gsub(/ :.*$/, ";") } if (match($0, "~")) { if (api_selected != "") {