indent_brace_parent

Whether to indent based on the size of the brace parent, i.e. if => 3 spaces, for => 4 spaces, etc.

Possible values are true and false, default false.

Examples

true

Before:

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

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

    return 0;
}

code after:

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

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

    return 0;
}

false

Code in above example will not be changed for false.

See also