aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-06-06 14:46:25 -0400
committerCameron Katri <me@cameronkatri.com>2021-06-06 14:46:25 -0400
commit5662aeaf38a1fe9d31313d2a7b40ddd6c1a91785 (patch)
treeae63d7f0991944a607da3b116d7be32b90d5b026
parenta2c8c10de3e13efa996d3b294bdfe15c52379c7f (diff)
downloadopendircolors-5662aeaf38a1fe9d31313d2a7b40ddd6c1a91785.tar.gz
opendircolors-5662aeaf38a1fe9d31313d2a7b40ddd6c1a91785.tar.zst
opendircolors-5662aeaf38a1fe9d31313d2a7b40ddd6c1a91785.zip
Disable clang-format the correct way
-rw-r--r--opendircolors.c14
1 files changed, 8 insertions, 6 deletions
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",