Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Jan Kratochvil <jan.kratochvil@redhat.com>,
	gdb-patches <gdb-patches@sourceware.org>,
		Cary Coutant <ccoutant@google.com>
Subject: Re: [PATCH] Fix Gold/strip discrepancies for PR 11786
Date: Tue, 05 Nov 2013 17:22:00 -0000	[thread overview]
Message-ID: <CADPb22QNaGzvagsDwgt2mAVOQw9kQxtKbnHKtnTbUMy-7xaJhw@mail.gmail.com> (raw)
In-Reply-To: <87li13shk2.fsf@fleche.redhat.com>

On Mon, Nov 4, 2013 at 6:34 PM, Tom Tromey <tromey@redhat.com> wrote:
>>> (void)
>
> Doug> We don't have any such style rules for testcases.
> Doug> But ok, done.
>
> Doug> Going forward though, for my own patch reviews of other people's code,
> Doug> what's the story here?
>
> In this case, "()" is not idiomatic C, whereas "(void)" is.
> This is not the same as a coding style rule.

I'm not sure how to read this.

Is this an argument for requiring (void) in all testsuite C function
definitions?
It's ok by me, but it seems to me it's not a requirement today as
there are plenty of existing examples, including recent ones.  OTOH,
if there is such a requirement we'd better get it written down so we
can refer to it when requesting corrections in patches, and so people
can know ahead of time what's expected.  Obviously the rules state
this for gdb itself, but it's been my understanding that these rules
explicitly do not apply to the testsuite, and this understanding has
been affirmed from time to time.  All I'm asking for is clarity and
consistency.

Or is this just a point about a bad use of the word "style"?
By itself "style" is a pretty nondescript word.
Alas I'm not one for always assigning names with precision.
If this isn't a style issue, coding *or* otherwise, let me know what to call it.

If this is something else, let me know that too. :-)


  reply	other threads:[~2013-11-05 17:04 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-25 23:26 Doug Evans
2013-10-30 23:57 ` Doug Evans
2013-10-31 16:42 ` Jan Kratochvil
2013-11-04 22:38   ` Doug Evans
2013-11-04 23:04     ` Cary Coutant
2013-11-05  3:42     ` Tom Tromey
2013-11-05 17:22       ` Doug Evans [this message]
2013-11-05 17:23         ` Jan Kratochvil
2013-11-05 18:01           ` Doug Evans
2013-11-05 18:13             ` Jan Kratochvil
2013-11-06 21:16               ` Doug Evans
2013-11-06 21:28                 ` Jan Kratochvil
2013-11-07  1:05                   ` Stan Shebs
2013-11-07 18:01                   ` Doug Evans
2013-11-07 19:03                     ` Jan Kratochvil
2013-11-08 17:57                       ` Doug Evans
2013-11-08 19:17                         ` Jan Kratochvil
2013-11-12 18:46                           ` Doug Evans
2013-11-12 19:58                             ` Jan Kratochvil
2013-11-12 22:05                               ` Doug Evans
2013-11-05 17:32         ` Pedro Alves
2013-11-05 17:32         ` Tom Tromey
2013-11-05 17:04     ` Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADPb22QNaGzvagsDwgt2mAVOQw9kQxtKbnHKtnTbUMy-7xaJhw@mail.gmail.com \
    --to=dje@google.com \
    --cc=ccoutant@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox