| Issue |
87250
|
| Summary |
[Feature Request] Clang-format: Always break function args
|
| Labels |
clang-format
|
| Assignees |
|
| Reporter |
sdimovv
|
Hi,
I need `clang-format` to unconditionally break function args into one per line. With bonus points for not breaking when there are no args.
To illustrate better what I mean:
```c
void myFunc(void);
void myFunc(void)
{
}
void myFuncWithArg(
int myArg
);
void myFuncWithArg(
int myArg
)
{
}
void myFuncWithTwoArgs(
int myArg1,
int myArg2
);
void myFuncWithTwoArgs(
int myArg1,
int myArg2
)
{
}
void myVeryLongFuncGoingOverTheLineCharacterLimit(
int myArg
);
void myVeryLongFuncGoingOverTheLineCharacterLimit(
int myArg
)
{
}
```
I tried playing around with the options and reading the documentation but I only managed to get it to do this whenever the function name or args go over the set character limit.
I think think this might not be possible currently, which is why I am opening this issue.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs