This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fdump-translation-unit considered harmful
It is intented for debugging.
| it should be a stable and well documented interface, right?
I think the reason why a debugging tool is misused that often so you
want to remove it is that "the world" is missing a decent free
standalone c++ parser, e.g. for code analyzing tools. and since c++
parsing is non-trivial and gcc is the only advanced one people try get
information out of that.
at least this is what I'm trying to do(using the tree structures, not
dumps). I'd be happy to contribute it when I'm done but I don't think
it'll fit your needs because it is a c++ model.
but I think there should be a stable interface or a stable xml output
for c++ code. (I know there is gccxml patch, but it is nothing else than
a dump-translation-unit written to a flat xml file, no hierarchy, no
statements)
--
Stefan Strasser