[asterisk-dev] Re: [svn-commits] trunk r32971 -
/trunk/include/asterisk.h
Tony Mountifield
tony at softins.clara.co.uk
Thu Jun 8 12:47:12 MST 2006
In article <18838486.21281149778124766.JavaMail.root at jupiler.digium.com>,
Russell Bryant <russell at digium.com> wrote:
> As stated in the coding guidelines, when using inline comments, please use spaces for
> indentation instead of tabs. Otherwise, we will keep getting formatting patches from people
> because it doesn't look right when displaying tabs differently than the last person editing
> this code.
That doesn't actually help in all cases.
If you have inline comments on lines with different indentation, they
will still align differently depending on the expansion size of the
initial tabs on each line.
I think the main problem is that the coding guidelines specify a hard tab
size of 4, but many people (myself included) set hard tabs at the default
of 8. I would prefer indent options of "-i4 -ts8", which translate into
vim options of "sw=4 sts=4 ts=8".
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-dev
mailing list