aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-11-27 08:59:09 +0100
committerRichard Levitte <levitte@openssl.org>2019-11-29 20:55:16 +0100
commit14ee781eef0e55563432f377d8911529823bee58 (patch)
tree7ce21926f906d704159b98d23cfb5efd4705a164 /util
parent31d3a7590274b48b194ed070ae531238764647f9 (diff)
downloadopenssl-14ee781eef0e55563432f377d8911529823bee58.zip
openssl-14ee781eef0e55563432f377d8911529823bee58.tar.gz
openssl-14ee781eef0e55563432f377d8911529823bee58.tar.bz2
util/find-doc-nits: ignore macros ending in _fnsig
These are helper macros alongside the IMPLEMENT_ and DECLARE_ macros. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10394)
Diffstat (limited to 'util')
-rwxr-xr-xutil/find-doc-nits13
1 files changed, 7 insertions, 6 deletions
diff --git a/util/find-doc-nits b/util/find-doc-nits
index acd9aa4..8dc2586 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++;