[GCC-XML]can serve to my goal?

Brad King brad.king at kitware.com
Wed Oct 16 09:05:29 EDT 2002

> Can someone point me to the manuals of GCCXML_FLAGS ?

The "gccxml" executable is a front-end to "gccxml_cc1plus" that finds the
settings for GCCXML_FLAGS automatically for several compilers and then
invokes the real gccxml_cc1plus executable for you.  Users should never
have to set GCCXML_FLAGS by hand, unless you are trying to simulate an
unsupported compiler.

If you are trying to make GCC-XML look like a compiler other than those
listed at "http://www.gccxml.org/HTML/Running.html", please request that
support be added.

> Can you set GCCXML to dump comments ?

GCC-XML is based on GCC's full C++ parser, including the preprocessor.
The comments are long gone by the time the dump runs.  However, the exact
filename and line number of each declaration is dumped.  A program could
use this information to go back and extract comments from the lines just
before the declarations.


More information about the gccxml mailing list