nl_after_func_body
The number of newlines after '}' of a multi-line function body.
Value is unsigned number. Note there is always one newline after function end, so really values mean:
- 0: option is not applied
- 1: no empty lines at all after this function
- N: there will be N-1 empty lines after function
Also there are two options that override this one: nl_after_func_body_class and nl_after_func_body_one_liner.
Examples
Config nl_after_func_body = 3
and code before:
int tf(const int ip)
{
return ip + 10;
}
int tf2(const int ip)
{
return ip + 10;
}
int main()
{
code after:
int tf(const int ip)
{
return ip + 10;
}
int tf2(const int ip)
{
return ip + 10;
}
int main()
{
See also
- nl_after_func_body_class - The number of newlines after '}' of a multi-line function body in a class declaration. Also affects class constructors/destructors.
- nl_after_func_body_one_liner - The number of newlines after '}' of a single line function body. Also affects class constructors/destructors.