This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: New ARI warning Sat Mar 12 01:53:29 UTC 2011
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org, Eli Zaretskii <eliz at gnu dot org>
- Cc: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Date: Mon, 14 Mar 2011 12:13:43 +0000
- Subject: Re: New ARI warning Sat Mar 12 01:53:29 UTC 2011
- References: <20110312015329.GA20179@sourceware.org> <006701cbe220$a1a8dba0$e4fa92e0$@muller@ics-cnrs.unistra.fr> <E1Pz5v6-0002FS-Es@fencepost.gnu.org>
On Monday 14 March 2011 11:26:40, Eli Zaretskii wrote:
> > Would it be better to reformat those as
> > extern TYPE long_func_name
> > (with_long_parameters);
> > instead of
> > extern TYPE
> > long_func_name (with_long_parameters);
>
> No, that's even uglier.
>
But it's what we do all over. We do have the rule that
grep "^foofunc" should only match function definitions, not
declarations. Here in gdbint.texinfo:
"A function declaration should not have its name in column zero. A
function definition should have its name in column zero."
--
Pedro Alves