From 7fbce03c88c9688615e5400fd414e472f68cd770 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 17 May 2020 15:30:43 +0200 Subject: [PATCH 1/2] Warning about incorrect class name In pull request #25 problem of 'All "main" files are squashed into one class' was solved though wen a filename has multiple dots like in `convert0.6.pl` we get: ``` warning: the name '6' supplied as the argument of the \class, \struct, \union, or \include command is not an input file ``` we have to escape the dot as well like already done for the minus sign. --- lib/Doxygen/Filter/Perl.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Doxygen/Filter/Perl.pm b/lib/Doxygen/Filter/Perl.pm index d887c4e..e8a61d5 100644 --- a/lib/Doxygen/Filter/Perl.pm +++ b/lib/Doxygen/Filter/Perl.pm @@ -635,6 +635,7 @@ sub _PrintClassBlock $usedClass = $self->{'_hData'}->{'filename'}->{'shortname'}; $usedClass =~ s/\.p[lm]$//; $usedClass =~ s/-/_/g; + $usedClass =~ s/\./_/g; $usedClass =~ s/^/main_/; } print "/** \@class $usedClass\n"; From d047975e4d0286624be58b699d71b942ea5c6021 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 20 Oct 2023 18:21:25 +0200 Subject: [PATCH 2/2] Warning about incorrect class name Same problem but now for filename `copyright++.pl` --- lib/Doxygen/Filter/Perl.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Doxygen/Filter/Perl.pm b/lib/Doxygen/Filter/Perl.pm index e8a61d5..b91e68a 100644 --- a/lib/Doxygen/Filter/Perl.pm +++ b/lib/Doxygen/Filter/Perl.pm @@ -636,6 +636,7 @@ sub _PrintClassBlock $usedClass =~ s/\.p[lm]$//; $usedClass =~ s/-/_/g; $usedClass =~ s/\./_/g; + $usedClass =~ s/\+/_/g; $usedClass =~ s/^/main_/; } print "/** \@class $usedClass\n";