diff options
author | Richard Levitte <levitte@openssl.org> | 2019-11-27 08:59:09 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-11-29 20:55:16 +0100 |
commit | 14ee781eef0e55563432f377d8911529823bee58 (patch) | |
tree | 7ce21926f906d704159b98d23cfb5efd4705a164 /util | |
parent | 31d3a7590274b48b194ed070ae531238764647f9 (diff) |
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-x | util/find-doc-nits | 13 |
1 files 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++; |