This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Fix annoying space in formatting
On Sun, Jun 27, 2004 at 10:43:03PM -0400, Jason Merrill wrote:
> Is there any way for me to convince you to make the conversion of
> tree-pretty-print a higher priority? Its major usability flaw for me is
> that I can't just feed it an arbitrary tree node and have it do something
> sensible with it, because it doesn't know about frontend nodes. I imagine
> some sort of langhook is called for, instead of separate entry points for C
> and GENERIC tree nodes.
Indeed, now that the majority of C and C++ tree nodes are GENERIC,
the foo.c.t03.original dump is useless, because the c/cxx-pretty-print
routines don't know about the bulk of GENERIC. And one would have to
replicate most of tree-pretty-print.c to do so. Which would be silly.
I would like to see the pretty-print callbacks turn into langhooks.
Or rather one langhook, since I don't see the point of 23 (!) hooks.
r~