indent-after-parens when multiple parens are involved
int foo(int)
{
return 42;
}
int main()
{
foo(
42);
foo(foo(
42));
return foo(
42);
}
--indent=force-tab
--indent-after-parens
Actual behavior: each nested parenthesis adds +1 tab to the continuation line; the return statement also adds +1 tab to the continuation line. The second and third statements in main
are reformatted.
Desired behavior: Each continuation line indented at just +1 tab, regardless of nesting. No change to the original formatting.
In theory, that would cause difficulties if the nested call is closed, then further arguments to the outer call are supplied. In practice, such formatting does not happen — people will break the line.
int main()
{
bar(
foo(
42),
42);
}