[neomutt-devel] clang-format of the source code

Richard Russon rich at flatcap.org
Thu Apr 13 16:17:26 CEST 2017

I've pushed a new branch to github: [clang-format]

## Apply clang-format to the source code

The source and headers have been treated slightly differently.

The source files (*.c) have had clang-format applied and it's expected
that this will become an automatic process in the future.  A few blocks
of source have been protected from change by special comments
    // clang-format off
    // clang-format on

The header files contain a lot of #define'd lists which contain a lot of
manually placed whitespace.  clang-format doesn't have an option to
align these as we'd like.

The compromise was to run clang-format on the headers, but cherry-pick
the formatting that was more human-friendly.  clang-format won't be
automatically run on the headers.

This commit also sorts out a few other formatting issues:
- All tabs have been expanded
- Tabs in translated strings have been expanded
  (this makes it easier to align translated strings)


There should be no functional changes to NeoMutt.

The diffstats are:
    243 files changed, 97527 insertions(+), 105835 deletions(-)

If anyone would like to review these colossal changes, act now.
I'll commit them to master tomorrow afternoon.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mailman.neomutt.org/pipermail/neomutt-devel-neomutt.org/attachments/20170413/3ba06d43/attachment.sig>

More information about the neomutt-devel mailing list