[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error messages with ranges
From: |
Joseph S. Myers |
Subject: |
Re: error messages with ranges |
Date: |
Fri, 16 Oct 2009 21:24:23 +0000 (UTC) |
On Fri, 16 Oct 2009, Chris Lattner wrote:
> On Oct 16, 2009, at 9:51 AM, Gabriel Dos Reis wrote:
>
> > On Fri, Oct 16, 2009 at 3:47 AM, Richard Stallman <address@hidden> wrote:
> > > How about something like this:
> > >
> > > exprs.c:47:15: error: invalid operands to binary expression ('int *' and
> > > '_Complex float')
> > > ::Argument locations: 47:8-47:14, 47:17-47:24
> > >
> > > If the brace notation you've proposed becomes a de facto standard,
> > > we may as well go along with it. But I think this proposal
> > > is better intrinsically, since it is less clutter and no harder to parse.
> >
> > I like the non-braced version.
> >
> > However, I would like you clarify the '::Argument locations:' marker.
> > Do you intend the double colons '::' as token to introduce
> > some form of meta data for tools? (In this case, it is to introduce
> > locus, but is it an escape for more general tags?)
>
> FWIW, clang uses ranges for a lot of things other than arguments.
I was presuming that in the above the initial "::" is the signal to IDEs
or other diagnostic parsers, meaning that "Argument locations" is to be
taken as English text that should be translated to the user's language,
and so IDEs should not ascribe any significance to the specific phrase
"Argument locations" because they need to handle translations to other
languages as well. With the specific phrase not being significant, it is
of course possible to put other phrases there if it's felt useful to
attach a natural language name to the other locations in that way.
--
Joseph S. Myers
address@hidden
- Re: error messages with ranges, (continued)
- Re: error messages with ranges, Karl Berry, 2009/10/11
- Re: error messages with ranges, Karl Berry, 2009/10/12
- Re: error messages with ranges, Manuel López-Ibáñez, 2009/10/13
- Re: error messages with ranges, Richard Stallman, 2009/10/14
- Re: error messages with ranges, Manuel López-Ibáñez, 2009/10/14
- Re: error messages with ranges, Richard Stallman, 2009/10/15
- Re: error messages with ranges, Manuel López-Ibáñez, 2009/10/15
- Re: error messages with ranges, Richard Stallman, 2009/10/16
- Re: error messages with ranges, Gabriel Dos Reis, 2009/10/16
- Re: error messages with ranges, Chris Lattner, 2009/10/16
- Re: error messages with ranges,
Joseph S. Myers <=
- Re: error messages with ranges, Gabriel Dos Reis, 2009/10/16
- Re: error messages with ranges, Richard Stallman, 2009/10/17
- Re: error messages with ranges, Richard Stallman, 2009/10/17
- Re: error messages with ranges, Richard Stallman, 2009/10/17
- Re: error messages with ranges, Manuel López-Ibáñez, 2009/10/17
- Re: error messages with ranges, Richard Stallman, 2009/10/18