indent_paren_nl

If an open parenthesis is followed by a newline, whether to indent the next line so that it lines up after the open parenthesis (not recommended).

Possible values are true and false, default false.

Examples

true

Before:

int main()
{
    int x = 10;
    int y = 20;

    for (int i = 0;
        i< 3;
        i++
        ) {
        std::cout << "count: " << i << '\n';
    }

    if (
        x<y
    ) {
        std::cout << "Also x is less than " << y << '\n';
    }

    return 0;
}

code after:

int main()
{
    int x = 10;
    int y = 20;

    for (int i = 0;
         i< 3;
         i++
         ) {
        std::cout << "count: " << i << '\n';
    }

    if (
        x<y
        ) {
        std::cout << "Also x is less than " << y << '\n';
    }

    return 0;
}

false

Does not change example above.

See also