This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ Plugins
- From: Benjamin Smedberg <bsmedberg at mozilla dot com>
- To: Terrence Miller <terrencem at sbcglobal dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 19 Oct 2009 14:31:27 -0400
- Subject: Re: C++ Plugins
- References: <4AD2043C.6010506@sbcglobal.net>
On 10/11/09 12:13 PM, Terrence Miller wrote:
> (Version 4.5.0)
>
> There are plugin callbacks which trigger at the end of processing types
> and C++ functions,
> but I can not find a clean way for plugin code to notice a top-level
> variable declaration.
>
> I'm hoping that the answer does not require the plugin shared library to
> bind to global symbols of the compiler (i.e. global_namespace).
Why not? That's what dehydra does: it enumerates through the items in
global_namespace in PLUGIN_FINISH_UNIT.
--BDS