This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: new parser: error recovery needs work


Fergus Henderson <fjh@cs.mu.OZ.AU> writes:

> On 17-Jan-2003, Neil Booth <neil@daikokuya.co.uk> wrote:
>> Fergus Henderson wrote:-
>> 
>> > We've discussed this before.  The concensus last time (as I understood it)
>> > was that alphanumeric message codes where a better alternative to message
>> > numbers.  Message codes are easier to remember, more self-documenting,
>> > and avoid collisions between new warnings added on different CVS branches
>> > or in different repositories.
>> 
>> I take it the idea is that the message code is similar to the text?
>
> Not really.  The message code is a name for the message.
> Usually it should be a lot shorter than the message.
> Unlike the message, it does not contain any varying parts.

You know, I really liked the idea of matching warning message text
against a set of user-specified regular expressions and suppressing
them if they matched.  Didn't someone have a demonstration patch for
that?

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]