From: Richard Levitte Date: Wed, 27 Nov 2019 07:59:09 +0000 (+0100) Subject: util/find-doc-nits: ignore macros ending in _fnsig X-Git-Tag: openssl-3.0.0-alpha1~871 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=14ee781eef0e55563432f377d8911529823bee58;p=oweals%2Fopenssl.git 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) --- 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++;