mirror of https://github.com/openssl/openssl.git
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)
This commit is contained in:
parent
31d3a75902
commit
14ee781eef
|
@ -647,15 +647,16 @@ sub checkmacros {
|
||||||
next unless /^#\s*define\s*(\S+)\(/;
|
next unless /^#\s*define\s*(\S+)\(/;
|
||||||
my $macro = $1;
|
my $macro = $1;
|
||||||
next if $docced{$macro} || defined $seen{$macro};
|
next if $docced{$macro} || defined $seen{$macro};
|
||||||
next if $macro =~ /i2d_/
|
next if $macro =~ /^i2d_/
|
||||||
|| $macro =~ /d2i_/
|
|| $macro =~ /^d2i_/
|
||||||
|| $macro =~ /DEPRECATEDIN/
|
|| $macro =~ /^DEPRECATEDIN/
|
||||||
|| $macro =~ /IMPLEMENT_/
|
|| $macro =~ /_fnsig$/
|
||||||
|| $macro =~ /DECLARE_/;
|
|| $macro =~ /^IMPLEMENT_/
|
||||||
|
|| $macro =~ /^_?DECLARE_/;
|
||||||
|
|
||||||
# Skip macros known to be missing
|
# Skip macros known to be missing
|
||||||
next if $opt_v && grep( /^$macro$/, @missing);
|
next if $opt_v && grep( /^$macro$/, @missing);
|
||||||
|
|
||||||
err("$f:", "macro $macro undocumented")
|
err("$f:", "macro $macro undocumented")
|
||||||
if $opt_d || $opt_e;
|
if $opt_d || $opt_e;
|
||||||
$count++;
|
$count++;
|
||||||
|
|
Loading…
Reference in New Issue