Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Bad Indentation
@ 2011-09-03 10:09 Abhijit Halder
  2011-09-03 10:27 ` Abhijit Halder
  0 siblings, 1 reply; 4+ messages in thread
From: Abhijit Halder @ 2011-09-03 10:09 UTC (permalink / raw)
  To: gdb-patches

Hi,

I've found the following indentation problem. Can someone plz correct the same.

#cvs diff gdb/remote.c

Index: gdb/remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.461
diff -r1.461 remote.c
4883c4883
<   }
---
> }


Thanks,
Abhijit Halder


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bad Indentation
  2011-09-03 10:09 Bad Indentation Abhijit Halder
@ 2011-09-03 10:27 ` Abhijit Halder
  2011-10-03 17:20   ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Abhijit Halder @ 2011-09-03 10:27 UTC (permalink / raw)
  To: gdb-patches

On Sat, Sep 3, 2011 at 3:02 PM, Abhijit Halder
<abhijit.k.halder@gmail.com> wrote:
> Hi,
>
> I've found the following indentation problem. Can someone plz correct the same.
>
> #cvs diff gdb/remote.c
>
> Index: gdb/remote.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/remote.c,v
> retrieving revision 1.461
> diff -r1.461 remote.c
> 4883c4883
> <   }
> ---
>> }
>
>
> Thanks,
> Abhijit Halder
>

In the same context I did an exercise and found the following:

# grep -I --include=*.[ch] -r "^[ ]\{8,\}" gdb-top/ | wc -l
71233

Since our convention is converting 8 consecutive space into a tab
character, the above result seems to me the violation of that rule.
Can we run some script to correct the same?

Thanks,
Abhijit Halder


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bad Indentation
  2011-09-03 10:27 ` Abhijit Halder
@ 2011-10-03 17:20   ` Tom Tromey
  2011-10-03 18:16     ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2011-10-03 17:20 UTC (permalink / raw)
  To: Abhijit Halder; +Cc: gdb-patches

>>>>> "Abhijit" == Abhijit Halder <abhijit.k.halder@gmail.com> writes:

Abhijit> Since our convention is converting 8 consecutive space into a tab
Abhijit> character, the above result seems to me the violation of that rule.
Abhijit> Can we run some script to correct the same?

I didn't see a response to this.

I'm mildly against such changes.  They make branch merges harder and
don't notably contribute to source clarity.

I won't object if someone wants to write this and some other reviewer
thinks it is worth committing.

Tom


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bad Indentation
  2011-10-03 17:20   ` Tom Tromey
@ 2011-10-03 18:16     ` Joel Brobecker
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Brobecker @ 2011-10-03 18:16 UTC (permalink / raw)
  To: Tom Tromey; +Cc: Abhijit Halder, gdb-patches

> I'm mildly against such changes.  They make branch merges harder and
> don't notably contribute to source clarity.

Same here. (I'm still very much in favor of banning tabs altogether,
they play tricks when displaying diffs, because sometimes, and they
are also a pain if the editor is not configure right - the only people
who don't mind are people using emacs).

-- 
Joel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-03 18:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-03 10:09 Bad Indentation Abhijit Halder
2011-09-03 10:27 ` Abhijit Halder
2011-10-03 17:20   ` Tom Tromey
2011-10-03 18:16     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox