From 17fa385d2cd4443707aa42ab752a00aacf87d750 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sun, 22 Dec 2019 23:52:30 +0100 Subject: [PATCH] util/find-doc-nits: when loading "missing" files, check if documented It may be that some "missing" manuals have been written since their insertion in the "missing" files. Make sure to alert when such manual references are found. This works, because we collect all existing manual references into %name_map first. Fixes #10681 Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/10683) --- util/find-doc-nits | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/find-doc-nits b/util/find-doc-nits index 93cdf03bb7..4b6d7c5e61 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -600,6 +600,11 @@ sub loadmissing($) } close FH; + for (@missing) { + err("$missingfile:", "$_ is documented in $name_map{$_}") + if exists $name_map{$_} && defined $name_map{$_}; + } + return @missing; } -- 2.25.1