jordan2175 / doxygen-filter-perl

Doxygen::Filter::Perl - A perl code pre-filter for Doxygen
Apache License 2.0
16 stars 8 forks source link

Support for multiple Perl scripts #16

Open jhwangus opened 5 years ago

jhwangus commented 5 years ago

Hi, I am using this filter to process several Perl scripts and try to create a document set for the script. Each Perl script is with .pl extension. They have functions inside but no modules.

This filter put every function in the Perl scripts under 'main' class, probably due to the pre-processing into CPP. Is it possible to support Perl scripts without classes? That is:

EXTENSION_MAPPING = pm=C++ pl=C

FILTER_PATTERNS = .pm=doxygen-filter-perl .pl=doxygen-filter-perl-c

albert-github commented 5 years ago

Can you please attach a, small, self contained example (source+configuration file in a tar or zip) that allows us to reproduce the problem, i.e. should create a "CPP" file and a "C" file? Please don't add external links as they might not be persistent. Maybe someone wil have a look at that moment or can give you some hints how to use the filter.

albert-github commented 4 years ago

I've just pushed a proposed patch, pull request #25 that separates the different main classes, not completely the requested feature but probably the best / easiest that can be done.

albert-github commented 4 years ago

Code of pull request #25 has been integrated in master on github.