[go: up one dir, main page]

Skip to content

Padding in lambda parameter lists

When I run ./AStyle --align-pointer=name --pad-oper <test.cpp on the following code:

void f()
{
    auto l = [&](char * c, short * s, int & i, long & l, 
                 float && f, double && d, int && j, Class * k)
    {
    };
}

the output is:

void f()
{
    auto l = [&](char *c, short * s, int &i, long & l,
                 float && f, double && d, int &&j, Class * k)
    {
    };
}

The operators *, &, and && are formatted as intended after char and int, but not after any other type.