For some arrays, clang-format does far than ideal jobs reformatting. Do
so manually and ban clang-format from interfering.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/118
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
static int from_name(const struct test *t)
{
static const char *const modnames[] = {
+ // clang-format off
"ext4",
"balbalbalbbalbalbalbalbalbalbal",
"snd-hda-intel",
"snd-timer",
"iTCO_wdt",
NULL,
+ // clang-format on
};
const char *const *p;
struct kmod_ctx *ctx;
static int alias_1(const struct test *t)
{
static const char *const input[] = {
+ // clang-format off
"test1234",
"test[abcfoobar]2211",
"bar[aaa][bbbb]sss",
"kmod[p.b]lib",
"[az]1234[AZ]",
NULL,
+ // clang-format on
};
char buf[PATH_MAX];