On 10/12/09 14:33, Simon Josefsson wrote:
Bruno Haible<br...@clisp.org>  writes:

Simon Josefsson wrote:
Is there a need to modify how 'indent' works here?  Or document how to
make indent do the right thing?  When making substantial changes to
gnulib code, I tend to run 'indent' on the code to make sure I'm
following the right style -- but that would add tabs, wouldn't it?

Right. Good point. I'll also add to the README the sentence

   If you use the GNU indent program, pass it the option '--no-tabs'.

Is this style something we want to try push into the GNU Coding Standard
and/or into the GNU indent default?

I don't care much about coding styles conventions, but I care about
consistency.  Moving away from the default style of GNU indent in gnulib
seems a bit inconsistent to me.  I can't find anything about tab vs
space in the coding standard though.  Thoughts?

I'm not sure `indent` is being kept up to date TBH.
This is my ~/.indent.pro for coreutils.

-Toff_t
-Twchar_t
-Tsize_t
-TFILE
-nut
-l80

Should each project ship an indent file to
match their particular coding standard?


Reply via email to