From 312c20f2c868d8fdc014108152cc7782ae6ec90b Mon Sep 17 00:00:00 2001 From: Yaroslav de la Peña Smirnov Date: Sat, 13 Sep 2025 01:37:55 +0300 Subject: clang-format: align with spaces Also format cli after the changes. --- cli/cli-test.c | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'cli/cli-test.c') diff --git a/cli/cli-test.c b/cli/cli-test.c index 3a89f53..c1d7591 100644 --- a/cli/cli-test.c +++ b/cli/cli-test.c @@ -21,12 +21,12 @@ CLI_OPT_FLAG(bopt, 'b', "flag-b", NULL); CLI_OPT_FLAG(copt, 'c', "flag-c", NULL); struct expected { - long i; + long i; unsigned long u; - const char *s; - bool a; - bool b; - bool c; + const char *s; + bool a; + bool b; + bool c; }; struct cli_opt *options[] = { @@ -41,12 +41,12 @@ struct cli_opt *options[] = { static void reset_opts(void) { - sopt.value = 0; - uopt.value = 0; + sopt.value = 0; + uopt.value = 0; stropt.value = NULL; - aopt.value = 0; - bopt.value = 0; - copt.value = 0; + aopt.value = 0; + bopt.value = 0; + copt.value = 0; } TEST_BEGIN(test_cli_opt_data_size_set) @@ -54,7 +54,7 @@ TEST_BEGIN(test_cli_opt_data_size_set) CLI_OPT_DATA_SIZE(opt, 0, NULL, NULL); struct tcase { const char *input; - uint64_t expected_val; + uint64_t expected_val; enum cli_rc expected_rc; } cases[] = { {"420", 420, CLI_RC_OK}, @@ -68,7 +68,7 @@ TEST_BEGIN(test_cli_opt_data_size_set) }; for (size_t i = 0; i < ARRAY_SIZE(cases); i++) { opt.bytes = 0; - int rc = opt.opt.set(&opt.opt, cases[i].input); + int rc = opt.opt.set(&opt.opt, cases[i].input); asserteq(rc, cases[i].expected_rc); asserteq(opt.bytes, cases[i].expected_val); } @@ -79,10 +79,10 @@ TEST_END TEST_BEGIN(test_parse_long) { struct tcase { - int argc; - char *argv[2]; + int argc; + char *argv[2]; struct expected expected_vars; - enum cli_rc expected_rc; + enum cli_rc expected_rc; } cases[] = { { .argc = 2, @@ -203,10 +203,10 @@ TEST_END TEST_BEGIN(test_parse_short) { struct tcase { - int argc; - char *argv[2]; + int argc; + char *argv[2]; struct expected expected_vars; - enum cli_rc expected_rc; + enum cli_rc expected_rc; } cases[] = { { .argc = 2, @@ -323,10 +323,10 @@ TEST_END TEST_BEGIN(test_parse_options) { struct tcase { - int argc; - char *argv[8]; + int argc; + char *argv[8]; struct expected expected_vars; - enum cli_rc expected_rc; + enum cli_rc expected_rc; } cases[] = { { .argc = 5, @@ -470,6 +470,6 @@ TEST_BEGIN(test_parse_options) TEST_END RUN_TESTS(test_cli_opt_data_size_set, - test_parse_long, - test_parse_short, - test_parse_options) + test_parse_long, + test_parse_short, + test_parse_options) -- cgit v1.2.3