I couldn't make clang-format make code like this
static inline return_type_t
foo(
long_name_arg1_t **a,
arg2_t b,
arg3_t *c
) {
var_type_t
var1,
var2,
var3;
var_type_t const
constant = 3;
}
global_var_t const
var = {
.arg1 = 1,
.arg2 = 2,
};
I have a big project with such style, it is old and I cannot use another code style, but I a bit tired to format code by hands. Is there way to force clang-format make:
- Unconditional break after variable type + some indentation for var name
- Unconditional break BEFORE closing paretheses in function declaration
UPD: Edited to satisfy SO policies.