Using uncrustify 0.60
I set nl_fcall_brace=force expecting the following result: newline between function arguments and the opening brace of function body
string toNsdName(const string& sid)
{
if (sid.empty())
{
return "";
}
string temp(sid);
replace_all(temp, PERIOD_MARK, DASH_MARK);
return temp;
}
--- Instead code remains ---
string toNsdName(const string& sid) {
if (sid.empty())
{
return "";
}
string temp(sid);
replace_all(temp, PERIOD_MARK, DASH_MARK);
return temp;
}
Apparently what was needed is "nl_fdef_brace=add"
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