]> granicus.if.org Git - neomutt/commit
clang-format: adjust layout of structs
authorRichard Russon <rich@flatcap.org>
Sat, 22 Apr 2017 16:34:56 +0000 (17:34 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 29 Apr 2017 13:35:10 +0000 (14:35 +0100)
commitf9cf207f915a41475e9d59cb2236f4de0eeddc9e
treed996b5979bc46f6e35d4ed835b8a303483769174
parentdbbc434d8a4f04fd757932d81a1fc6f42504fb23
clang-format: adjust layout of structs

Some structs are packed by clang-format, leaving the closing brace
n the same line as the data:

char *known[] = {"color-xterm", "cygwin", "eterm",  "kterm", "nxterm",
                 "putty",       "rxvt",   "screen", "xterm", NULL};

By inserting a comma after the last data item (allowed by C99),
clang-format produces a more pleasant-looking layout:

char *known[] = {
    "color-xterm", "cygwin", "eterm",  "kterm", "nxterm",
    "putty",       "rxvt",   "screen", "xterm", NULL,
};
16 files changed:
base64.c
crypt_gpgme.c
curs_main.c
date.c
globals.h
hcache.c
hdrline.c
imap/auth.c
imap/command.c
imap/utf7.c
mutt_lua.c
mutt_ssl.c
parse.c
pop_auth.c
rfc822.c
wcwidth.c