indent_braces

Whether braces are indented to the body level.

Possible values are true and false, default false.

Examples

true

Before:

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

    // if with else
    if (x<y) {
        std::cout << "Also x is less than " << y << '\n';
    }
    else {
        std::cout << "Also x is more (or equal) than " << y << '\n';
    }

    return 0;
}

code after:

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

    // if with else
    if (x<y) {
        std::cout << "Also x is less than " << y << '\n';
        }
    else {
        std::cout << "Also x is more (or equal) than " << y << '\n';
        }

    return 0;
    }

See also