From: Cameron Katri Date: Sun, 6 Jun 2021 18:46:25 +0000 (-0400) Subject: Disable clang-format the correct way X-Git-Url: https://git.cameronkatri.com/opendircolors.git/commitdiff_plain/5662aeaf38a1fe9d31313d2a7b40ddd6c1a91785?hp=a2c8c10de3e13efa996d3b294bdfe15c52379c7f Disable clang-format the correct way --- diff --git a/opendircolors.c b/opendircolors.c index 9be81f6..634726f 100644 --- a/opendircolors.c +++ b/opendircolors.c @@ -41,14 +41,16 @@ static void usage(const char *); -static const struct option long_options[] = { /* no clang-format */ - { "help", no_argument, NULL, 'h' }, /**/ - { "bourne-shell", no_argument, NULL, 'b' }, /**/ - { "sh", no_argument, NULL, 'b' }, /**/ - { "csh", no_argument, NULL, 'c' }, /**/ - { "c-shell", no_argument, NULL, 'c' }, /**/ +// clang-format off +static const struct option long_options[] = { + { "help", no_argument, NULL, 'h' }, + { "bourne-shell", no_argument, NULL }, + { "sh", no_argument, NULL, 'b' }, + { "csh", no_argument, NULL, 'c' }, + { "c-shell", no_argument, NULL, 'c' }, { NULL, no_argument, NULL, 0 } }; +// clang-format on static const char *long_types[38] = { "NORMAL", "NORM", "FILE", "RESET", "DIR", "LNK", "LINK", "SYMLINK", "ORPHAN", "MISSING", "FIFO", "PIPE", "SOCK",