[GCC-XML] Preprocessor to XML ... away to get the defines?

Thomas Menguy thomas.menguy at gmail.com
Mon Mar 7 12:46:32 EST 2005


Hi,

The other way we would like to dig is how to catch the macros/define
... I know gccxml is working, of course on preprocessed datas ...
anyway something like gcc -E -dD -undef on a file gives all the
necessary information to do the job : so 2 way to do :
-have a gccxml -E -dD -undef and make the output as XML (ie gets the
#define lines and the associated file) : relatively easy to do ( ;-)
), but far from being optimal, processor wize
-instrument the preprocessor also, to output directly the defines in
the XML structure.

Comments, Ideas?

Regards
Thomas



More information about the gccxml mailing list