]> granicus.if.org Git - neomutt/commit
apply clang-format to the source code
authorRichard Russon <rich@flatcap.org>
Wed, 12 Apr 2017 18:45:24 +0000 (19:45 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 13 Apr 2017 14:06:55 +0000 (15:06 +0100)
commit41b5f7640f7a5ac84b4893ad4cb09d4f96e42e06
tree6698f2c13d168f706fcd40ab211693b689677034
parent5503639ea35d5f773522790591e7ec5ef57f6883
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)
228 files changed:
.clang-format
account.c
account.h
addrbook.c
alias.c
ascii.c
ascii.h
attach.c
attach.h
base64.c
bcache.c
bcache.h
browser.c
browser.h
buffer.c
buffer.h
buffy.c
buffy.h
charset.c
charset.h
color.c
commands.c
complete.c
compose.c
compress.c
compress.h
copy.c
copy.h
crypt.c
crypt_gpgme.c
crypt_gpgme.h
crypt_mod.c
crypt_mod.h
crypt_mod_pgp_classic.c
crypt_mod_pgp_gpgme.c
crypt_mod_smime_classic.c
crypt_mod_smime_gpgme.c
cryptglue.c
crypthash.h
curs_lib.c
curs_main.c
date.c
doc/makedoc.c
doc/makedoc_defs.h
dotlock.c
dotlock.h
edit.c
editmsg.c
enter.c
extlib.c
filter.c
filter.h
flags.c
from.c
functions.h
getdomain.c
globals.h
gnupgparse.c
group.c
handler.c
hash.c
hash.h
hcache.c
hcache.h
hcache_backend.h
hcache_bdb.c
hcache_gdbm.c
hcache_kc.c
hcache_lmdb.c
hcache_qdbm.c
hcache_tc.c
hdrline.c
headers.c
help.c
history.c
hook.c
imap/auth.c
imap/auth.h
imap/auth_anon.c
imap/auth_cram.c
imap/auth_gss.c
imap/auth_login.c
imap/auth_plain.c
imap/auth_sasl.c
imap/browse.c
imap/command.c
imap/imap.c
imap/imap.h
imap/imap_private.h
imap/message.c
imap/message.h
imap/utf7.c
imap/util.c
init.c
init.h
keymap.c
keymap.h
lib.c
lib.h
mailbox.h
main.c
mapping.h
mbox.c
mbyte.c
mbyte.h
md5.c
md5.h
menu.c
mh.c
mime.h
mutt.h
mutt_commands.h
mutt_crypt.h
mutt_curses.h
mutt_idna.c
mutt_idna.h
mutt_lua.c
mutt_menu.h
mutt_notmuch.c
mutt_notmuch.h
mutt_options.h
mutt_regex.h
mutt_sasl.c
mutt_sasl.h
mutt_sasl_plain.c
mutt_sasl_plain.h
mutt_socket.c
mutt_socket.h
mutt_ssl.c
mutt_ssl.h
mutt_ssl_gnutls.c
mutt_tunnel.c
muttlib.c
mx.c
mx.h
newsrc.c
nntp.c
nntp.h
pager.c
pager.h
parse.c
pattern.c
pgp.c
pgp.h
pgpewrap.c
pgpinvoke.c
pgpkey.c
pgplib.c
pgplib.h
pgpmicalg.c
pgppacket.c
pgppacket.h
pgppubring.c
po/bg.po
po/ca.po
po/cs.po
po/da.po
po/de.po
po/el.po
po/en_GB.po
po/eo.po
po/es.po
po/et.po
po/eu.po
po/fr.po
po/ga.po
po/gl.po
po/hu.po
po/id.po
po/it.po
po/ja.po
po/ko.po
po/lt.po
po/nl.po
po/pl.po
po/pt_BR.po
po/ru.po
po/sk.po
po/sv.po
po/tr.po
po/uk.po
po/zh_CN.po
po/zh_TW.po
pop.c
pop.h
pop_auth.c
pop_lib.c
postpone.c
protos.h
query.c
recvattach.c
recvcmd.c
remailer.c
resize.c
rfc1524.c
rfc1524.h
rfc2047.c
rfc2047.h
rfc2231.c
rfc3676.c
rfc822.c
rfc822.h
safe_asprintf.c
score.c
send.c
sendlib.c
sha1.c
sha1.h
sidebar.c
sidebar.h
signal.c
smime.c
smime.h
smtp.c
sort.c
sort.h
status.c
strcasestr.c
system.c
thread.c
txt2c.c
url.c
url.h
utf8.c
version.c
version.h
wcscasecmp.c
wcwidth.c