sp_assign

Add or remove space around assignment operator =, +=, etc.

Possible values are ignore, add, remove and force, default is ignore.

Examples

Add

Before:

vector<int>v ={7, 5, 16, 8};

shared_ptr<int>isp=make_shared<int>();
*isp = 5000;

int x=4, y=5;
int z= x+y;

After

vector<int>v = {7, 5, 16, 8};

shared_ptr<int>isp = make_shared<int>();
*isp = 5000;

int x = 4, y = 5;
int z = x+y;

Remove

Before

vector<int>v =  {7, 5, 16, 8};
shared_ptr<int>isp  =make_shared<int>();
*isp = 5000;
int x=4, y = 5;
int z= x+y;

After

vector<int>v={7, 5, 16, 8};
shared_ptr<int>isp=make_shared<int>();
*isp=5000;
int x=4, y=5;
int z=x+y;

See also