gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: Adjust locations for RECORD_TYPEs

Subject: Re: Adjust locations for RECORD_TYPEs
From: Gabriel Dos Reis
Date: Wed, 25 Nov 2009 17:36:02 -0600
On Wed, Nov 25, 2009 at 5:02 PM, Taras Glek <tglek@xxxxxxxxxxx> wrote:
> On 11/25/2009 03:00 PM, Richard Guenther wrote:
>>
>> On Wed, Nov 25, 2009 at 11:57 PM, Taras Glek<tglek@xxxxxxxxxxx>  wrote:
>>
>>>
>>> Hi,
>>> Currently locations for structs point at {, which is frustrating in error
>>> messages and painful if one uses GCC to index their codebase (ie
>>> http://australia.proximity.on.ca/dxr/)
>>>
>>> This patch attempts to correct that such that the location of a
>>> RECORD_TYPE
>>> will be the location of the class name.
>>>
>>
>> What will be the location for anonymous RECORD_TYPEs?
>>
>
> End of struct/class token.

Well, that looks weird to me, compared to the existing behaviour.

-- Gaby

<Prev in Thread] Current Thread [Next in Thread>