Re: FW: Extracting more source struture in XML output
Chris Croughton <doxydev <at> keristor.co.uk>
2004-10-08 14:32:51 GMT
On Fri, Oct 08, 2004 at 03:49:53PM +0200, Dimitri van Heesch wrote:
> Doxygen already produces XML. It could be improved to add more semantic
> information about the bodies of functions, for instance to indicate if
> something is a declaration, control statement, loop or assigment.
> Doxygen does not have this information explicitly available somewhere already
> even though it can do syntax highlighting and linking.
Yes, it's the bodies of functions that I (and the OP) was thinking of.
I suspect that a general C/C++ to XML translator is more than Doxygen
wants to contain, however (let alone any other supported languages).
> > While I'm thinking about switches, it would be very useful to have
> > options settable from the command line, not just in the configuration
> > file. For some purposes I have to maintain three or more versions of
> > the config file (implementer detail, user detail, overview, sometimes
> > with or without relationship charts as well), a switch to set options
> > would be a lot easier to put in a makefile with a common config file for
> > all the messy stuff (include/exclude lists, etc.). Oh, and the version
> > number. Or have I missed something which already allows this?
> If you use a decent shell, you could use something like this:
> (cat Doxyfile ; echo "PROJECT_NUMBER=0.2") | doxygen -
Ah, taking the config stuff from stdin was something I had missed,
thanks. Yes, that would work fine, as would piping it through sed to
change options. Or rules setting up an additional file and then cat-ing
both of them into doxygen.