clang-format documentation for BinPackArguments:
If false
, a function call’s arguments will either be all on the same line or will have one line each.
0true:
1void f() {
2 f(aaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaa,
3 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);
4}
5
6false:
7void f() {
8 f(aaaaaaaaaaaaaaaaaaaa,
9 aaaaaaaaaaaaaaaaaaaa,
10 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);
11}
https://clang.llvm.org/docs/ClangFormatStyleOptions.html#configurable-format-style-options
There’s no reason to forbid this format. Having multiple arguments or parameters per line can be just as readable as having one per line (and is certainly more readable than having extremely long lines).