I can't find anything in the documentation, even BreakBeforeBraces: Allman
formats one-line functions that i already split up to
void foo() { bar(); }
I want something similar to
void foo()
{
bar();
}
I want this for organization of code and uniformity, because this is how every multiline function looks like.
Can you please help me?
To have a short function body on a separate line add this to the .clang-format
file:
AllowShortFunctionsOnASingleLine: Empty
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With