From f17d7015dc4df17e75ad39786fca3e7c4207bbee Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 25 Jul 2026 15:12:44 +0200 Subject: remove clang-format off directives --- src/ci.c | 6 ++---- src/client_main.c | 18 ++++++++---------- src/server_main.c | 18 ++++++++---------- src/worker_main.c | 18 ++++++++---------- 4 files changed, 26 insertions(+), 34 deletions(-) (limited to 'src') diff --git a/src/ci.c b/src/ci.c index 4692b19..32035a1 100644 --- a/src/ci.c +++ b/src/ci.c @@ -17,8 +17,7 @@ #include #include -/* clang-format off */ -static const char *ci_scripts[] = { +static const char* ci_scripts[] = { "./.ci.sh", "./.ci", "./ci.sh", @@ -26,12 +25,11 @@ static const char *ci_scripts[] = { NULL, }; -static const char *ci_env[] = { +static const char* ci_env[] = { "CI=y", "CIMPLE=y", NULL, }; -/* clang-format on */ static int ci_run_script(const char* script, struct process_output* result) { const char* args[] = {script, NULL}; diff --git a/src/client_main.c b/src/client_main.c index 6419157..87161b4 100644 --- a/src/client_main.c +++ b/src/client_main.c @@ -33,16 +33,14 @@ static int parse_settings(struct settings* settings, int argc, char* argv[]) { *settings = default_settings(); - /* clang-format off */ - static struct option long_options[] = { - {"help", no_argument, 0, 'h'}, - {"version", no_argument, 0, 'V'}, - {"verbose", no_argument, 0, 'v'}, - {"host", required_argument, 0, 'H'}, - {"port", required_argument, 0, 'p'}, - {0, 0, 0, 0}, - }; - /* clang-format on */ + static struct option long_options[] = { + {"help", no_argument, 0, 'h'}, + {"version", no_argument, 0, 'V'}, + {"verbose", no_argument, 0, 'v'}, + {"host", required_argument, 0, 'H'}, + {"port", required_argument, 0, 'p'}, + {0, 0, 0, 0}, + }; while ((opt = getopt_long(argc, argv, "hVvH:p:", long_options, &longind)) != -1) { switch (opt) { diff --git a/src/server_main.c b/src/server_main.c index 14bc3f5..b4c2491 100644 --- a/src/server_main.c +++ b/src/server_main.c @@ -30,16 +30,14 @@ static int parse_settings(struct settings* settings, int argc, char* argv[]) { *settings = default_settings(); - /* clang-format off */ - static struct option long_options[] = { - {"help", no_argument, 0, 'h'}, - {"version", no_argument, 0, 'V'}, - {"verbose", no_argument, 0, 'v'}, - {"port", required_argument, 0, 'p'}, - {"sqlite", required_argument, 0, 's'}, - {0, 0, 0, 0}, - }; - /* clang-format on */ + static struct option long_options[] = { + {"help", no_argument, 0, 'h'}, + {"version", no_argument, 0, 'V'}, + {"verbose", no_argument, 0, 'v'}, + {"port", required_argument, 0, 'p'}, + {"sqlite", required_argument, 0, 's'}, + {0, 0, 0, 0}, + }; while ((opt = getopt_long(argc, argv, "hVvp:s:", long_options, &longind)) != -1) { switch (opt) { diff --git a/src/worker_main.c b/src/worker_main.c index 7d076c7..6562b7f 100644 --- a/src/worker_main.c +++ b/src/worker_main.c @@ -30,16 +30,14 @@ static int parse_settings(struct settings* settings, int argc, char* argv[]) { *settings = default_settings(); - /* clang-format off */ - static struct option long_options[] = { - {"help", no_argument, 0, 'h'}, - {"version", no_argument, 0, 'V'}, - {"verbose", no_argument, 0, 'v'}, - {"host", required_argument, 0, 'H'}, - {"port", required_argument, 0, 'p'}, - {0, 0, 0, 0}, - }; - /* clang-format on */ + static struct option long_options[] = { + {"help", no_argument, 0, 'h'}, + {"version", no_argument, 0, 'V'}, + {"verbose", no_argument, 0, 'v'}, + {"host", required_argument, 0, 'H'}, + {"port", required_argument, 0, 'p'}, + {0, 0, 0, 0}, + }; while ((opt = getopt_long(argc, argv, "hVvH:p:", long_options, &longind)) != -1) { switch (opt) { -- cgit v1.3