<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/devel/uncrustify.cfg, branch feature/git-remote</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=feature%2Fgit-remote</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=feature%2Fgit-remote'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2021-03-12T11:15:41Z</updated>
<entry>
<title>devel/uncrustify: add line length limits.</title>
<updated>2021-03-12T11:15:41Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-03-07T19:44:46Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=324443f16604499349f36dc0fab487d87e40d1e5'/>
<id>urn:sha1:324443f16604499349f36dc0fab487d87e40d1e5</id>
<content type='text'>
A generous limit of 102 is chosen to moderate the amount of resulting
reformatting.
</content>
</entry>
<entry>
<title>uncrustify: indent classes</title>
<updated>2019-06-14T10:41:27Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2019-06-13T10:50:44Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=bcfd3e7542b3a004caba16b723c6663c7fd4b015'/>
<id>urn:sha1:bcfd3e7542b3a004caba16b723c6663c7fd4b015</id>
<content type='text'>
With previous settings member functions / variables are moved to
column 0.
</content>
</entry>
<entry>
<title>uncrustify.cfg: added 3 new types for uncrustify to know</title>
<updated>2012-11-07T12:00:03Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2012-11-02T14:07:06Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=439fe710ebd2ceadc65f1e80bee545cd1a28bf59'/>
<id>urn:sha1:439fe710ebd2ceadc65f1e80bee545cd1a28bf59</id>
<content type='text'>
Added FILE, notmuch_show_params_t and sprinter_t to be
types when uncrustifying sources. This affect spacing
when uncrustify is deciding for type declaration instead
of binary multiplication operation.
</content>
</entry>
<entry>
<title>uncrustify.cfg: comments and more types</title>
<updated>2012-06-03T16:39:57Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2012-02-07T16:34:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=00a8581e4dcc5112d502729b1698d9c1598d3413'/>
<id>urn:sha1:00a8581e4dcc5112d502729b1698d9c1598d3413</id>
<content type='text'>
Changes to devel/uncrustify.cfg:

* Updated header comment to state this is config file for *notmuch*.
* Added comment about the reason of 'type' keyword used.
* Added some more custom types woth 'type' keyword.
* Have (every) multiline comment lines start with '*'.
</content>
</entry>
<entry>
<title>uncrustify.cfg: label indent, some known types, not, # and ##</title>
<updated>2012-01-25T11:40:50Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2012-01-24T20:55:59Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9e701465ebb43bcd5a56155be404758976e66c1f'/>
<id>urn:sha1:9e701465ebb43bcd5a56155be404758976e66c1f</id>
<content type='text'>
Adjusted some uncrustify variables to get closer to prevailing style:

* Label indent (for goto) relative to current indentation.
* Registered GMimeObject and mime_node_t being as types.
* Space after ! (not) operator.
* No space after 'stringify' (#) preprosessor token.
* No spacing change around ## (option not versatile enough).

There are at least 3 cases where attention needs to be paid:

* If there is newline between function name and open paren in function
  call, the paren (and args) are indented too far right.
* #define HOUR (60 *MINUTE) -- i.e. no space after star (*).
* void (*foo)(args) -- i.e no space between (name) and (args).
</content>
</entry>
<entry>
<title>uncrustify.cfg: initial support for notmuch coding style</title>
<updated>2012-01-21T19:11:25Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-01-10T12:07:07Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=871fc32837d1e734895bef5f89040b5b874ae473'/>
<id>urn:sha1:871fc32837d1e734895bef5f89040b5b874ae473</id>
<content type='text'>
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.
</content>
</entry>
</feed>
