diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2019-12-21 20:42:10 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-01-13 12:28:18 +0000 |
commit | 28104cdda3f1272e3e41f6eec2b5bff9f4fc162e (patch) | |
tree | 1e13723c5c0103605dc1ead1ddfbacb88d640bb9 /util | |
parent | 1f9bfd899308960c1621ba07366f3c911fd27058 (diff) |
make find-doc-nits report function typedef w/ space before arg list
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10673)
Diffstat (limited to 'util')
-rwxr-xr-x | util/find-doc-nits | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/find-doc-nits b/util/find-doc-nits index b9c72803a1..773214c94d 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -144,6 +144,11 @@ sub name_synopsis { $line =~ s/STACK_OF\([^)]+\)/int/g; $line =~ s/SPARSE_ARRAY_OF\([^)]+\)/int/g; $line =~ s/__declspec\([^)]+\)//; + if ( $line =~ /typedef.*\(\*\S+\)\s+\(/ ) { + # a callback function with whitespace before the argument list: + # typedef ... (*NAME) (... + err($id, "function typedef has space before arg list: $line"); + } if ( $line =~ /env (\S*)=/ ) { # environment variable env NAME=... $sym = $1; |