* Howto dump syntax tree of erroneous program?
@ 2004-11-25 8:13 Bob Gustafson
0 siblings, 0 replies; only message in thread
From: Bob Gustafson @ 2004-11-25 8:13 UTC (permalink / raw)
To: gcc-help
I have a heavily templated C++ program (w/ macros too), written by
someone else, which compiles and runs using an earlier version of g++
(but not by me).
I have managed to find a number of tweeks (this-> additions) which
enable the compile to move along. However, I am stumped at the moment.
I have used -E, -Q, -dy, and -save-temps options to g++, but the info
obtained is not quite enough. I could use something that would dump the
source code file name, line number, name of syntactic element observed
(e.g., template, non-type template-parameter, template specialization,
etc.) and the source text snippet at that point.
This is just an aid so that I can be sure that the compiler and I are
thinking about the same thing in the same way.
The output could be spit out as an xml file. XSLT post-processor tools
would spring up to handle that format.
Does this exist already? If not, what piece of gcc compiler code would I
hack to product this output?
Thanks for any replies.
BobG
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-25 8:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-25 8:13 Howto dump syntax tree of erroneous program? Bob Gustafson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).