From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15578 invoked by alias); 22 Dec 2009 18:16:38 -0000 Received: (qmail 15531 invoked by uid 22791); 22 Dec 2009 18:16:37 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f203.google.com (HELO mail-pz0-f203.google.com) (209.85.222.203) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Dec 2009 18:16:33 +0000 Received: by pzk41 with SMTP id 41so354883pzk.0 for ; Tue, 22 Dec 2009 10:16:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.250.3 with SMTP id x3mr6006878wfh.23.1261505791648; Tue, 22 Dec 2009 10:16:31 -0800 (PST) In-Reply-To: <6dc9ffc80912221013s4e56445bwc45a2c9768fe15c3@mail.gmail.com> References: <407016140912221000o1c69d392x68607f8f529eaa7d@mail.gmail.com> <6dc9ffc80912221013s4e56445bwc45a2c9768fe15c3@mail.gmail.com> Date: Tue, 22 Dec 2009 18:46:00 -0000 Message-ID: <407016140912221016t98b1cb7ve13c596f074525ff@mail.gmail.com> Subject: Re: plugin event for C/C++ declarations From: Brian Hackett To: "H.J. Lu" Cc: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg01038.txt.bz2 Hi, I added comments/documentation in plugin.def and doc/plugins.texi consistent with other plugins. Is there another place documentation should go? Brian On Tue, Dec 22, 2009 at 10:13 AM, H.J. Lu wrote: > On Tue, Dec 22, 2009 at 10:00 AM, Brian Hackett = wrote: >> Hi, this patch adds a new plugin event FINISH_DECL, which is invoked >> at every finish_decl in the C and C++ frontends. =A0Previously 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. =A0This event >> isn't restricted to just globals though, but also locals, fields, and >> parameters (C frontend only). >> >> Brian >> >> >> >> 2009-12-22 =A0Brian Hackett =A0 >> >> gcc/ChangeLog: >> >> =A0 =A0 =A0 =A0* plugin.def: Add event for finish_decl. >> =A0 =A0 =A0 =A0* plugin.c (register_callback, invoke_plugin_callbacks): = Same. >> =A0 =A0 =A0 =A0* c-decl.c (finish_decl): Invoke callbacks on above event. >> > > Shouldn't it be documented? > > > -- > H.J. >