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


Neil Booth 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?

Then how do we handle internationalization, where users in a different
language have never even seen, let alone understand, the English form of
the message?

My theory is to have the names be basically the same as what the
-Wxxx options use now, so for -Wmissing-prototypes, "missing-prototypes"
is the name of the warning, and would be available for attributes and
pragmas just as for command-line options.  The names are orthogonal to
localization, they're just arbitrary strings.

Although perhaps to be more politically correct, we should borrow
from various languages for names.  How about -Wabwesende-Urbilder? :-)

Stan



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