Closed cacharle closed 2 years ago
clang-format only puts one space between prototype return type and the rest of the prototype.
clang-format
So the correctly formatted:
// alignment ---> | t_tok_lst *tok_lst_new(enum e_tok tag, char *content); t_tok_lst *tok_lst_new_until( enum e_tok tag, char *content, size_t n); t_tok_lst *tok_lst_push_front( t_tok_lst **tokens, t_tok_lst *pushed); t_tok_lst *tok_lst_uncons(t_tok_lst **tokens);
becomes after clang-format:
// alignment ---> | t_tok_lst *tok_lst_new(enum e_tok tag, char *content); t_tok_lst *tok_lst_new_until(enum e_tok tag, char *content, size_t n); t_tok_lst *tok_lst_push_front(t_tok_lst **tokens, t_tok_lst *pushed); t_tok_lst *tok_lst_uncons(t_tok_lst **tokens);
The align formatter puts the correct alignment but breaks the maximum column.
The 2nd and 3rd prototypes lines are >80 characters.
Fixed in f2a81a3fdc8f2b535a2768c6aa942aefc50fa679.
clang-format
only puts one space between prototype return type and the rest of the prototype.So the correctly formatted:
becomes after
clang-format
:The align formatter puts the correct alignment but breaks the maximum column.
The 2nd and 3rd prototypes lines are >80 characters.