From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23316 invoked by alias); 22 Dec 2009 18:24:13 -0000 Received: (qmail 23299 invoked by uid 22791); 22 Dec 2009 18:24:13 -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-ew0-f227.google.com (HELO mail-ew0-f227.google.com) (209.85.219.227) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Dec 2009 18:24:07 +0000 Received: by ewy27 with SMTP id 27so7920446ewy.16 for ; Tue, 22 Dec 2009 10:24:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.89.14 with SMTP id b14mr184298wef.76.1261506242524; Tue, 22 Dec 2009 10:24:02 -0800 (PST) In-Reply-To: <407016140912221016t98b1cb7ve13c596f074525ff@mail.gmail.com> References: <407016140912221000o1c69d392x68607f8f529eaa7d@mail.gmail.com> <6dc9ffc80912221013s4e56445bwc45a2c9768fe15c3@mail.gmail.com> <407016140912221016t98b1cb7ve13c596f074525ff@mail.gmail.com> Date: Tue, 22 Dec 2009 18:50:00 -0000 Message-ID: <6dc9ffc80912221024l3ab28f66m1c773f74cd23db89@mail.gmail.com> Subject: Re: plugin event for C/C++ declarations From: "H.J. Lu" To: Brian Hackett Cc: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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/msg01039.txt.bz2 On Tue, Dec 22, 2009 at 10:16 AM, Brian Hackett wr= ote: > Hi, I added comments/documentation in plugin.def and doc/plugins.texi > consistent with other plugins. =A0Is there another place documentation > should go? doc/plugins.texi isn't mentioned in ChangeLog. H.J. --- > 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 even= t. >>> >> >> Shouldn't it be documented? >> >>