This is the mail archive of the
mailing list for the GCC project.
Re: [RFC] Cleaning and extening the diagnostics machinery
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: [RFC] Cleaning and extening the diagnostics machinery
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Thu, 31 May 2001 14:52:23 -0400
- Cc: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>, gcc at gcc dot gnu dot org, Zack Weinberg <zackw at Stanford dot EDU>
- References: <email@example.com> <20010531191200.C2745@daikokuya.demon.co.uk>
On Thu, May 31, 2001 at 07:12:00PM +0100, Neil Booth wrote:
> Gabriel Dos Reis wrote:-
> > In the long term, for C++ at least, I'd like highlighting support and
> > better formatting logic.
> What do you mean here? Just curious.
I can't speak for Gaby, but...
When line-wrapping, the choices for breaking the line are sometimes less
than optimal. Balancing parens, brackets, < and > for templates, quote
marks, etc, can be very important. The show-location=once setting was a
big improvement, as it toned down the number of repetitive printings of
Like that one message I linked to... a lot of tools and editors assume that
output from gcc is going to be of the form file:line:text, and that will
probably have to remain the default until the end of time. But I'd like some
(short!) command-line option to turn on pretty-printing of, say, templates:
template < T [with T=int],
U [with ....],
template < Q [with...] >
or something. Anything.
For highlighting support, personally I'm thinking of GNU ls, where ANSI
escape sequences can be listed in an LS_COLORS environment variable.
Hmmmmm... HTML-formatted diagnostic text... ouch my brain
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.