This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
finding an original typedef decl from a reference
- From: IainS <developer at sandoe-acoustics dot co dot uk>
- To: GCC Development <gcc at gcc dot gnu dot org>
- Date: Mon, 19 Apr 2010 14:03:07 +0100
- Subject: finding an original typedef decl from a reference
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...?
Iain