This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix Gold/strip discrepancies for PR 11786

On Tue, Nov 5, 2013 at 10:05 AM, Jan Kratochvil
<> wrote:
> On Tue, 05 Nov 2013 18:56:29 +0100, Doug Evans wrote:
>> If the decision is to be more strict with the rules for testcases
>> that's fine by me.
>> Let's write it down, then discussions like these will become a *lot* shorter.
> Adding more and more rules I do not find as a clear win.
> When I code GDB I have to think about so many established non-standard coding
> style rules my head is going to explode.  Switching between multiple projects
> each having different coding style makes it worse.
> But sending a patch and getting it corrected here and there due to unwritten
> rules one could not find anywhere is also not great, though, I agree.

At the end of the day I'm still lacking the clarity I seek.
[It's not imperative, but it's more than "IWBN".]

I'm not suggesting adding more rules (per se), but I do think there's
no downside to writing down existing unwritten rules (for those things
that are, indeed, rules).

I'm going to propose the following, and if y'all are ok with it then
this can be the end of it, this thread is done.

If there are no objections, I will add a Testsuite section to the
C-Coding-Standards section of the wiki:

It will basically say tests are in general not required to following
the GDB coding standards,
but there are a few exceptions, and then have an enumeration of explicit rules,
and for now just have the one: (void) is required over ().
And for grin's sake, since there's so many of them, and less likely to
be a problem, int main () is ok.
I'll also mention that "Monkey See Monkey Do hacking should generally
Just Work."
[There's less need to go into detail if one can say one can just mimic
existing code.
That will keep it short-and-sweet.
I'm ok with people adding more to the wiki, but I like taking "baby steps".]

I'll probably also add a link to the new section to:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]