This is the mail archive of the
mailing list for the GCC project.
Re: plugin event for C/C++ declarations
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Brian Hackett <bhackett1024 at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 22 Dec 2009 10:13:52 -0800
- Subject: Re: plugin event for C/C++ declarations
- References: <email@example.com>
On Tue, Dec 22, 2009 at 10:00 AM, Brian Hackett <firstname.lastname@example.org> wrote:
> Hi, this patch adds a new plugin event FINISH_DECL, which is invoked
> at every finish_decl in the C and C++ frontends. ?Previously there did
> not seem to be a way for a plugin to see the definition for a global
> that is never used in the input file, or the initializer for a global
> which is declared before a function but defined after. ?This event
> isn't restricted to just globals though, but also locals, fields, and
> parameters (C frontend only).
> 2009-12-22 ?Brian Hackett ?<email@example.com>
> ? ? ? ?* plugin.def: Add event for finish_decl.
> ? ? ? ?* plugin.c (register_callback, invoke_plugin_callbacks): Same.
> ? ? ? ?* c-decl.c (finish_decl): Invoke callbacks on above event.
Shouldn't it be documented?