diff options
author | Rich Salz <rsalz@openssl.org> | 2017-06-08 15:18:38 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-06-08 15:18:38 -0400 |
commit | 1722496fcaa8f2760dd38f7a77ba1256e51e8b7d (patch) | |
tree | b87c2d33d028128fa07d73f781cef7684013bd93 /util/find-doc-nits | |
parent | 6dad1efef721341c8302717d93615ea03c71ee0b (diff) |
Remove doc of non-existent functions
Fix test for "documenting private functions"
And add -p flag to doc-nits recipe
Mark when things were deprecated, if doc'd as such
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3624)
Diffstat (limited to 'util/find-doc-nits')
-rwxr-xr-x | util/find-doc-nits | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/util/find-doc-nits b/util/find-doc-nits index 643fb9fd3e..d016985950 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -85,8 +85,10 @@ sub name_synopsis() if %foundfilenames; print "$id $simplename (filename) missing from NAME section\n" unless $foundfilename; - print "$id $simplename is not public\n" - if $opt_p and !defined $public{$simplename}; + foreach my $n ( keys %names ) { + print "$id $n is not public\n" + if $opt_p and !defined $public{$n}; + } # Find all functions in SYNOPSIS return unless $contents =~ /=head1 SYNOPSIS(.*)=head1 DESCRIPTION/ms; @@ -230,7 +232,10 @@ sub parsenum() next if /^#/; next if /\bNOEXIST\b/; next if /\bEXPORT_VAR_AS_FUNC\b/; - push @apis, $1 if /([^\s]+).\s/; + my @fields = split(); + die "Malformed line $_" + if scalar @fields != 2 && scalar @fields != 4; + push @apis, $fields[0]; } close $IN; |