Skip to content

Commit ee81dbe

Browse files
committed
fixed issue where functions would not print if you were using my global variables
1 parent 5437b48 commit ee81dbe

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

Doxyfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = Doxygen::Filter::Perl
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 1.70
41+
PROJECT_NUMBER = 1.71
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a
@@ -291,7 +291,8 @@ OPTIMIZE_OUTPUT_VHDL = NO
291291
# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
292292
# the files are not read by doxygen.
293293

294-
EXTENSION_MAPPING = pm=c++
294+
EXTENSION_MAPPING = pm=c++ \
295+
pl=c++
295296

296297
# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
297298
# according to the Markdown format, which allows for more readable

bin/doxygen-filter-perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use Doxygen::Filter::Perl;
2525
use Log::Log4perl;
2626

2727

28-
our $VERSION = '1.50';
28+
our $VERSION = '1.71';
2929
$VERSION = eval $VERSION;
3030

3131

lib/Doxygen/Filter.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use strict;
2727
use warnings;
2828
use Log::Log4perl;
2929

30-
our $VERSION = '1.70';
30+
our $VERSION = '1.71';
3131
$VERSION = eval $VERSION;
3232

3333

lib/Doxygen/Filter/Perl.pm

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# @endverbatim
1919
#
2020
# @copy 2011, Bret Jordan (jordan2175@gmail.com, jordan@open1x.org)
21-
# $Id: Perl.pm 93 2014-03-17 13:08:02Z jordan2175 $
21+
# $Id: Perl.pm 93 2015-03-17 13:08:02Z jordan2175 $
2222
#*
2323
package Doxygen::Filter::Perl;
2424

@@ -31,7 +31,7 @@ use Pod::POM;
3131
use IO::Handle;
3232
use Doxygen::Filter::Perl::POD;
3333

34-
our $VERSION = '1.70';
34+
our $VERSION = '1.71';
3535
$VERSION = eval $VERSION;
3636

3737

@@ -425,6 +425,9 @@ sub PrintAll
425425
}
426426

427427
# Print all functions/methods in order of appearance, let doxygen take care of grouping them according to modifiers
428+
# I added this print public line to make sure the functions print if one of
429+
# the previous elements was a my $a = 1 and thus had a print "private:"
430+
print("public:\n");
428431
foreach my $methodName (@{$self->{'_hData'}->{'class'}->{$class}->{'subroutineorder'}})
429432
{
430433
$self->_PrintMethodBlock($class, $methodName);
@@ -1032,7 +1035,10 @@ sub _ConvertToOfficialDoxygenSyntax
10321035
$logger->debug("### Entering _ConvertToOfficialDoxygenSyntax ###");
10331036

10341037
# This will match "## @command" and convert it to "#** @command"
1035-
if ($line =~ /^\s*##\s+\@/) { $line =~ s/^(\s*)##(\s+\@)/$1#\*\*$2/; }
1038+
if ($line =~ /^\s*##\s+\@/) { $line =~ s/^(\s*)##(\s+\@)/$1#\*\*$2/; }
1039+
else {
1040+
$logger->debug('Nothing to do, did not find any ## @');
1041+
}
10361042
return $line;
10371043
}
10381044

@@ -1266,7 +1272,7 @@ Bret Jordan <jordan at open1x littledot org> or <jordan2175 at gmail littledot c
12661272
12671273
=head1 LICENSE
12681274
1269-
Doxygen::Filter::Perl is dual licensed GPLv3 and Commerical. See the LICENSE
1275+
Doxygen::Filter::Perl is licensed with an Apache 2 license. See the LICENSE
12701276
file for more details.
12711277
12721278
=cut

lib/Doxygen/Filter/Perl/POD.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use warnings;
2828
use parent qw(Pod::POM::View::HTML);
2929
use Log::Log4perl;
3030

31-
our $VERSION = '1.70';
31+
our $VERSION = '1.71';
3232
$VERSION = eval $VERSION;
3333

3434

0 commit comments

Comments
 (0)