
This commit hopefully improves the formatting of the codebase by setting ColumnLimit to 0 and hence stopping clang-format from trying to put as much stuff in one line as possible. This change enabled us to remove most of `clang-format off` directives and fixed a bunch of lines that looked like this: ```c #define KEY \ VALUE /* comment */ ``` Additionally, one pair of `clang-format off` / `clang-format on` had `clang-format off` as the second comment and hence didn't enable the formatting for the rest of the file. This commit addresses this issue as well. Please tell me if anything in the changes seem off. If everything is fine, I will add this commit to `.git-blame-ignore-revs` later. --------- Signed-off-by: Mikhail Koviazin <mikhail.koviazin@aiven.io>
18 lines
844 B
C
18 lines
844 B
C
#include <stddef.h>
|
|
#include "cli_commands.h"
|
|
|
|
/* Definitions to configure commands.c to generate the above structs. */
|
|
#define MAKE_CMD(name, summary, complexity, since, doc_flags, replaced, deprecated, group, group_enum, history, \
|
|
num_history, tips, num_tips, function, arity, flags, acl, key_specs, key_specs_num, get_keys, \
|
|
numargs) \
|
|
name, summary, group, since, numargs
|
|
#define MAKE_ARG(name, type, key_spec_index, token, summary, since, flags, numsubargs, deprecated_since) \
|
|
name, type, token, since, flags, numsubargs
|
|
#define COMMAND_ARG cliCommandArg
|
|
#define COMMAND_STRUCT commandDocs
|
|
#define SKIP_CMD_HISTORY_TABLE
|
|
#define SKIP_CMD_TIPS_TABLE
|
|
#define SKIP_CMD_KEY_SPECS_TABLE
|
|
|
|
#include "commands.def"
|