Re: finding an original typedef decl from a reference

2010-04-19 Thread IainS
On 19 Apr 2010, at 14:18, Manuel López-Ibáñez wrote: On 19 April 2010 15:03, IainS 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... Can I ask what you mean by a nice diagnostic

Re: finding an original typedef decl from a reference

2010-04-19 Thread Manuel López-Ibáñez
On 19 April 2010 15:03, IainS 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... Can I ask what you mean by a nice diagnostic? and what you want to use this for? Just out

Re: finding an original typedef decl from a reference

2010-04-19 Thread Richard Guenther
On Mon, Apr 19, 2010 at 3:03 PM, IainS 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 >

finding an original typedef decl from a reference

2010-04-19 Thread IainS
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_