dawnbeen/c_formatter_42

`clang-format` splitting long function declaration at type

Closed this issue · 0 comments

static void st_merge_fields_in_curr(
		char *strs[3], t_tok_lst **curr, t_tok_lst *fields)

becomes:

static void
st_merge_fields_in_curr(char *strs[3], t_tok_lst **curr, t_tok_lst *fields)

For the alignment script to work it should split after the ( like the original.

Multiline function declaration is allowed by the norm so it could become:

static void st_merge_fields_in_curr(
    char *strs[3],
    t_tok_lst **curr,
    t_tok_lst *fields)

or stay like the original.