Skip to content

Commit 63bf670

Browse files
committed
Asterisk in prototype
When having: ``` sub text_replace (**) { } ``` We get the warning (as the `*` is not recognized in the prototype): ``` warning: member with no name found. ``` replacing the `*` with `any_type`
1 parent b470a10 commit 63bf670

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Doxygen/Filter/Perl.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,7 @@ sub _ConvertTypeCode
10831083
$logger->debug("### Entering _ConvertParameters ###");
10841084

10851085
# Lets clean up the parameters list so that it will work with Doxygen
1086+
$code =~ s/\*/any_type /g;
10861087
$code =~ s/\$\$/scalar_ref/g;
10871088
$code =~ s/\@\$/array_ref/g;
10881089
$code =~ s/\%\$/hash_ref/g;
@@ -1105,6 +1106,7 @@ sub _ConvertParameters
11051106
$logger->debug("### Entering _ConvertParameters ###");
11061107

11071108
# Lets clean up the parameters list so that it will work with Doxygen
1109+
$sParameters =~ s/\*/any_type /g;
11081110
$sParameters =~ s/\$\$/scalar_ref /g;
11091111
$sParameters =~ s/\@\$/array_ref /g;
11101112
$sParameters =~ s/\%\$/hash_ref /g;

0 commit comments

Comments
 (0)