]> git.notmuchmail.org Git - notmuch/commitdiff
uncrustify.cfg: initial support for notmuch coding style
authorDavid Bremner <bremner@debian.org>
Tue, 10 Jan 2012 12:07:07 +0000 (08:07 -0400)
committerDavid Bremner <bremner@debian.org>
Sat, 21 Jan 2012 19:11:25 +0000 (15:11 -0400)
Uncrustify is a free (as in GPL2+) tool that indents and beautifies
C/C++ code. It is similar to GNU indent in functionality although
probably more configurable (in fairness, indent has better
documentation).  Uncrustify does not have the indent mis-feature of
needing to have every typedef'ed type defined in the
configuration (even standard types like size_t).

This configuration starts with the linux-kernel style from the
uncrustify config, disables aggressive re-indenting of structs,
and fine tunes the handling 'else' and braces.

In an ideal situation, running uncrustify on notmuch code would be
NOP; currently this is not true for all files because 1) the
configuration is not perfect 2) the coding style of notmuch is not
completely consistent; in particular the treatment of braces after
e.g. for (_) is not consistent.

Some fine tuning by Tomi Olilla.


No differences found