sp_cpp_lambda_assign

Add or remove space around '=' in C++11 lambda capture specifications.

Overrides sp_assign.

Values

Possible values are

Examples

Add

Before:

    auto func1 = [=](int i) {
                 std::cout << i+x << ' ';
             };

After

    auto func1 = [ = ](int i) {
                 std::cout << i+x << ' ';
             };

Force

Before

    auto func1 = [  =](int i) {
                 std::cout << i+x << ' ';
             };

After

    auto func1 = [ = ](int i) {
                 std::cout << i+x << ' ';
             };