This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc-plugin] hooking function declarations...
- From: PaweÅ Sikora <pluto at agmk dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 10 Apr 2010 20:39:55 +0200
- Subject: Re: [gcc-plugin] hooking function declarations...
- References: <op.vat3hql0zu3k57@pawels.alatek.krakow.pl>
On Thursday 08 April 2010 09:06:54 PaweÅ Sikora wrote:
> hi,
>
> i'm working on some gcc plugin and need to access all declarations
> for function and classes. hooking on plugin_finish_type and
> plugin_pre_genericize
> gives me afaics only record_trees for declared classes.
> how can i obtain (in easiest way) function decls?
i should notice that i'm compiling only external library *header*
and in such case the plugin_pre_genericize isn't invoked.
afaics plugin_pre_genericize is invoked for classic translation unit.
is it a lack of implemenation in header-precompilation machinery?