nl_after_brace_open

Whether to add a newline after '{'. This also adds a newline before the matching '}'.

Possible values are true and false, default false.

Examples

true

Before:

int main()
{
    int x = 1;
    int y = 2;

    //just braces
    {       int z = x + y;
        std::cout << "z value processed" << '\n';}

    return 0;
}

After

int main()
{
    int x = 1;
    int y = 2;

    //just braces
    {
        int z = x + y;
        std::cout << "z value processed" << '\n';
    }

    return 0;
}

false

Example remains unchanged.

See also