|
| ||||
Configuring Doxygen for DoxyFiltDoxygen provides a mechanism for filtering source code in order to make it more palatable to the Doxygen parser. In the Doxygen configuration file, named INPUT_FILTER = DoxyFilt Now, whenever Doxygen examines a source file, it will call For example: =item C<parse($self [ , $path ])> Parse the specified source file. Applies all appropriate parsers the the source file. Each parser is able to store information on itself or this C<Doxygen::Source> object. =cut sub parse { generates documentation for Doxygen::Source::parse(). DoxyFilt.pl via batch/shell file/scriptsWhat Doxygen can't do is pass arguments or flags to the input filter. This is the primary reason why I use a batch file (on Windows) or shell script (on *NIX) to actually launch DoxyFilt.pl. I can reference the script from
For Windows the It is probably a good idea to generate a new set for each project, so that flag settings can be project-specific, but I have worked hard to have DoxyFilt.pl and the scripts provided do the most natural things I could think of. DoxyFilt.pl ItselfThe actual DoxyFilt.pl script has the following usage: usage: $0 <flag>* [ <path> ]
Process file specified by <path> (or via --path flag),
generating faux C++ and Doxygen comments to standard output
--alias <docType>=<filter>
set an alias for a document type, so that
<docType> is handled by the <filter> filter
--check <docType>=<pattern>
set the file recognition pattern for
a document type
--comment <docType>=<pattern>
set the comment recognition pattern for
a document type
--docs <docType>=<suffix>
set the suffix pattern for a document type
--flag <[docType::]flag>=<value>
--help show this usage description
--noinfo deactivate informational logging ([I])
--pass=<suffix> suffix to be passed through unchanged
--path=<path> specify file path (or use positional argument)
--spawn <docType>=<command>
set command to be spawned via system()
--trace activate trace logging ([T] and [H])
USAGE
Generated on Mon Dec 27 2010 15:15:39 for DoxyFilt by 1.7.1 | |||||