finding an original typedef decl from a reference

Richard Guenther richard.guenther@gmail.com
Mon Apr 19 13:19:00 GMT 2010


On Mon, Apr 19, 2010 at 3:03 PM, IainS <developer@sandoe-acoustics.co.uk> wrote:
>
> consider :
>
> typedef int INT1 ;
>
> int func (INT1 x) ;
>
> ----
>
> now if I am in grokparms()  parsing "INT1 x " and I want to issue a nice
> diagnostic for x...
>
> I can't seem to find the right magic that gets me back to that DECL for INT1
> (I actually want any attributes attached to it and an expand_location)..
>
> any pointers to the correct macro or chain to follow...?

TYPE_NAME will be a TYPE_DECL.

Richard.

> Iain
>
>



More information about the Gcc mailing list