'clang-format AlignAfterOpenBracket list params

This post asked a similar question about how to modify formatting when there are too many parameters.

I quite like the rust-fmt styling for this. Is there any way to do this with clang-format?

e.g. 1: with AlignAfterOpenBrackets: AlwaysBreak

return_t foo(
    some_t param_1, some_t param_2, some_t param_3, 
    some_t param_4) {
    // function body
}

e.g. 2: desired formatting

return_t foo(
    some_t param_1, 
    some_t param_2, 
    some_t param_3, 
    some_t param_4
) {
    // function body
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source