From 14ee781eef0e55563432f377d8911529823bee58 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 27 Nov 2019 08:59:09 +0100 Subject: [PATCH] util/find-doc-nits: ignore macros ending in _fnsig These are helper macros alongside the IMPLEMENT_ and DECLARE_ macros. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/10394) --- util/find-doc-nits | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/util/find-doc-nits b/util/find-doc-nits index acd9aa4e93..8dc258657c 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -647,15 +647,16 @@ sub checkmacros { next unless /^#\s*define\s*(\S+)\(/; my $macro = $1; next if $docced{$macro} || defined $seen{$macro}; - next if $macro =~ /i2d_/ - || $macro =~ /d2i_/ - || $macro =~ /DEPRECATEDIN/ - || $macro =~ /IMPLEMENT_/ - || $macro =~ /DECLARE_/; + next if $macro =~ /^i2d_/ + || $macro =~ /^d2i_/ + || $macro =~ /^DEPRECATEDIN/ + || $macro =~ /_fnsig$/ + || $macro =~ /^IMPLEMENT_/ + || $macro =~ /^_?DECLARE_/; # Skip macros known to be missing next if $opt_v && grep( /^$macro$/, @missing); - + err("$f:", "macro $macro undocumented") if $opt_d || $opt_e; $count++; -- 2.25.1