The "nl_multi_line_cond=true" configuration option does not seem to make a difference to code. With that as the only line in the configuration, the following code change happens:
This:
void
foo()
{
if (a == b ||
a == b ||
a == b ||
a == b ||
a == b ||
a == b ||
a == b ||
a == b) {
statement;
}
}
becomes:
void
foo()
{
if (a == b ||
a == b ||
a == b ||
a == b ||
a == b ||
a == b ||
a == b ||
a == b) {
statement;
}
}
When I think it should become:
void
foo()
{
if (a == b ||
a == b ||
a == b ||
a == b ||
a == b ||
a == b ||
a == b ||
a == b)
{
statement;
}
}
Note that the closing ) occurs on a different line from the 'if', yet there is not a newline before the {.
This is with version 0.61.
The option you are looking for is:
nl_if_brace=force