[PATCH] STYLE: Initial draft of coding style document

Jani Nikula jani at nikula.org
Mon Jan 30 08:01:15 PST 2012


On Jan 30, 2012 4:38 PM, "Tomi Ollila" <tomi.ollila at iki.fi> wrote:
>
> On Fri, 27 Jan 2012 19:46:58 -0400, David Bremner <david at tethera.net>
wrote:
> > From: David Bremner <bremner at debian.org>
>
> [ ... ]
>
> > +
> > +* Indent is 4 spaces with mixed tabs/spaces and a tab width of 8.
> > +  Tabs should be only at the beginning of the line.
>
> So, after initial indentation (with tabs) there should not be further
> tabs? We'll be using the former instead of the latter in these 2 below?

I'd prefer tabs for aligning comments at the end of lines.

>
> /* excerpt from command-line-arguments.h -- indentation without tabs */
>
> enum notmuch_opt_type {
>    NOTMUCH_OPT_END = 0,
>    NOTMUCH_OPT_BOOLEAN,        /* --verbose              */
>    NOTMUCH_OPT_INT,            /* --frob=8               */
>    NOTMUCH_OPT_KEYWORD,        /* --format=raw|json|text */
>    NOTMUCH_OPT_STRING,         /* --file=/tmp/gnarf.txt  */
>    NOTMUCH_OPT_POSITION        /* notmuch dump pos_arg   */
> };
>
> /* excerpt from command-line-arguments.h -- indentation with tabs */
>
> enum notmuch_opt_type {
>    NOTMUCH_OPT_END = 0,
>    NOTMUCH_OPT_BOOLEAN,        /* --verbose              */
>    NOTMUCH_OPT_INT,            /* --frob=8               */
>    NOTMUCH_OPT_KEYWORD,        /* --format=raw|json|text */
>    NOTMUCH_OPT_STRING,         /* --file=/tmp/gnarf.txt  */
>    NOTMUCH_OPT_POSITION        /* notmuch dump pos_arg   */
> };
>
>
> [ ... ]
>
>
> Tomi
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120130/b2596c56/attachment-0001.html>


More information about the notmuch mailing list