Patch: Preprocessing DOT input files
2005-05-24 23:03:04 GMT
Hi there,
There was a post on the doxygen-users list a few days ago asking if it is
possible to do something like the following:
/** blah blah
\dot
graph G {
a -- b
#if defined(ENABLE_C)
b -- c
c -- a
#endif
}
\enddot
*/
Basically this allows showing or hiding of nodes based on the pre-processor
defines. As far as I've been able to workout, this cannot be done without
invoking an external pre-processor as part of a build step or script.
This feature is something I very much want, as I have a large diagram with a
few small parts which are optional depending on compile switches. DOT
itself seems to like the idea of pre-processing as it ignores any lines that
start with a # character, so is safe to ignore and '#line' output, were the
pre-processor to make any.
There follows a patch that adds an option "PREPROCESS_DOT_FILES" to allow
DOT input files to be preprocessed. I would be very grateful to know if
(Continue reading)
] I have created a style sheet that converts the Doxygen styles to our styles. Unfortunately, the style used for aliases is a text style - not a heading - and it does not match the style used for "Parameters".
RSS Feed