From 107d8425b16b4e98bf5cbddb516e740a12de6878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Thu, 2 Oct 2014 11:57:54 +0000 Subject: [PATCH] fixcomments.pl: Simply remove empty unmatched procedure args svn-origin-rev: 14379 --- tools/doxify/fixcomments.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/doxify/fixcomments.pl b/tools/doxify/fixcomments.pl index 49fed0820c..48bf485677 100755 --- a/tools/doxify/fixcomments.pl +++ b/tools/doxify/fixcomments.pl @@ -381,7 +381,9 @@ while (<$INPUT>) # While there are still lines to read in our INPUT file foreach $paramtype ( sort keys %params ) # We need to sort the keys otherwise the output order of the hash is given in internal order { if (($matched{$paramtype} eq 0) && ($ampersand eq 0)) { - if ( $params{$paramtype} !~ m/UNMATCHED_PROCEDURE_ARGUMENT/) { # Must protect against updating an existing comment + if ($params{$paramtype} eq '!> \param '.$paramtype." ...\n") { + # there was no comment, just drop parameter + } elsif ($params{$paramtype} !~ m/UNMATCHED_PROCEDURE_ARGUMENT/) { # Must protect against updating an existing comment chomp($params{$paramtype}); # Get rid of \n so UNMATCHED* text can be appended on. print $OUTPUT $params{$paramtype} . " UNMATCHED_PROCEDURE_ARGUMENT: please check \n"; } else {