Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb@sourceware.org, cgf-use-the-mailinglist-please@sourceware.org
Subject: Re: Two quick questions
Date: Tue, 29 Nov 2011 03:25:00 -0000	[thread overview]
Message-ID: <CAHQ1cqE+WhUVqgBMyV5tyyUgW7heBYmmCkdrBY5C_wMG9o3=fA@mail.gmail.com> (raw)
In-Reply-To: <20111128153809.GB17887@adacore.com>

On Mon, Nov 28, 2011 at 10:38 PM, Joel Brobecker <brobecker@adacore.com> wrote:
>>      1. Since neither
>>      http://www.sourceware.org/gdb/current/onlinedocs/gdbint/Coding-Standards.html
>>      nor http://sourceware.org/gdb/wiki/JoelsCodingStyleCheatSheet
>>      mentions this, or at least yours myopic truly haven't noticed it,
>>      I wonder what is the GDB's allegiance in the Tabs, Spaces, Tabs +
>>      Spaces holy war? Who are the infidels we must crush? :) The
>>      reason I'm asking is that I don't want to generate false diffs
>>      just because I re-indented the line in different style.
>
> We use tabs mostly, optionally followed by spaces if a line of code
> doesn't exactly start at a tabulation.

So Tabs + Spaces, OK.

> Although it's perfectly fine
> to tabify a line of code that you're modifying, I would personally
> prefer that you don't touch lines just for the sake of tabifying.
> Others might disagree (hence the "personally"), but these little
> changes don't bring anything in terms of readability, mess up the
> indentation when reading diffs, and also potentially create merge
> conflicts for changes that are essentially no-ops.
>

Oh no, that not the meaning I was trying to convey in my message, I'm
sorry I wasn't very clear and was misconstrued.

I was asking exactly because I wanted avoid generated unnecessary
"junk" in the patches just because I idly hit the tab on some line in the
code an my editor re-indented it differently(for example with all
spaces, which is default for me now) while writing a patch. It is just
that I've already seen one such occurrence in one of my patches and
I would like to avoid having them in further ones.

So, just to be clear, I'm neither planning nor thinking about planning
to re-indent the code.

Andrey Smirnov


  parent reply	other threads:[~2011-11-29  3:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-28  8:47 Andrey Smirnov
2011-11-28 15:38 ` Joel Brobecker
2011-11-28 22:09   ` Christopher Faylor
2011-11-29  3:33     ` Andrey Smirnov
2011-11-29 20:56       ` Christopher Faylor
2011-11-29  3:25   ` Andrey Smirnov [this message]
2011-11-29  4:10     ` Stan Shebs
2011-11-29  4:34       ` Andrey Smirnov
2011-11-29  4:43         ` Eli Zaretskii

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='CAHQ1cqE+WhUVqgBMyV5tyyUgW7heBYmmCkdrBY5C_wMG9o3=fA@mail.gmail.com' \
    --to=andrew.smirnov@gmail.com \
    --cc=brobecker@adacore.com \
    --cc=cgf-use-the-mailinglist-please@sourceware.org \
    --cc=gdb@sourceware.org \
    /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