sp_permit_cpp11_shift

Permit removal of the space between >> in foo<bar<int> >. Note that sp_angle_shift cannot remove the space without this option.

Possible values are false and true. Default is false (so it disables remove option for sp_angle_shift)

Examples

false

Config

sp_angle_shift = remove
sp_permit_cpp11_shift = false

Code before:

std::list<std::pair< int, int> > *lp = new std::list< std::pair<int, int>>(10);
std::list<std::pair<int, int>> *lp2 = new std::list< std::pair<int, int> >(20);

Code after:

std::list<std::pair< int, int> > *lp = new std::list< std::pair<int, int> >(10);
std::list<std::pair<int, int> > *lp2 = new std::list< std::pair<int, int> >(20);

Note, it adds spaces instead of removing.

true

Config

sp_angle_shift = remove
sp_permit_cpp11_shift = true

Code before:

std::list<std::pair< int, int> > *lp = new std::list< std::pair<int, int>>(10);
std::list<std::pair<int, int>> *lp2 = new std::list< std::pair<int, int> >(20);

Code after:

std::list<std::pair< int, int>> *lp = new std::list< std::pair<int, int>>(10);
std::list<std::pair<int, int>> *lp2 = new std::list< std::pair<int, int>>(20);

See also