util/find-doc-nits: ignore macros ending in _fnsig
authorRichard Levitte <levitte@openssl.org>
Wed, 27 Nov 2019 07:59:09 +0000 (08:59 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 29 Nov 2019 19:55:16 +0000 (20:55 +0100)
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)

util/find-doc-nits

index acd9aa4..8dc2586 100755 (executable)
@@ -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++;