This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Question for removing trailing whitespaces (not vertical tab) from source


On Tue, Mar 13, 2007 at 03:02:44PM -0000, Dave Korn wrote:
>   Can you explain that value?  It's just that 1) I see vast acres and acres of
> code where the tabstop size is two spaces 2) the coding standard doesn't seem
> to /demand/ a specific tab size and 3) if we use 8-space TABs with the kind of
> depths of nesting the gcc code often contains we're going to exceed the
> 80-column line length limit just on the leading indentation alone pretty
> often....

GCC indents with tabs replacing eight leading spaces but an indentation
depth of two spaces.  I don't know where your acres and acres are,
but they aren't in most GNU software.  This is, unsurprisingly, how
emacs behaves.

Personally I think that regardless of your indentation preferences,
using anything besides eight column tab stops for \t is silly; that's
what "cat" is going to use.

-- 
Daniel Jacobowitz
CodeSourcery


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