home  

sp_after_assign

Properties

  Category: Spacing options
      Type: multiple (ignore add remove force)
   Default: ignore

Description

Add or remove space after assignment operator '=', '+=', etc.

Overrides sp_assign.
a =b

Examples

raw CPP code sp_after_assign=ignore sp_after_assign=add sp_after_assign=remove sp_after_assign=force space
sp_after_assign=force
a=b; a= b; a =b; a = b; a+=b; a+= b; a +=b; a += b; a%=b; a%= b; a %=b; a %= b; a&=b; a&= b; a &=b; a &= b; a>>=b; a>>= b; a >>=b; a >>= b; a<<=b; a<<= b; a <<=b; a <<= b; // etc... a=b; a= b; a =b; a = b; a+=b; a+= b; a +=b; a += b; a%=b; a%= b; a %=b; a %= b; a&=b; a&= b; a &=b; a &= b; a>>=b; a>>= b; a >>=b; a >>= b; a<<=b; a<<= b; a <<=b; a <<= b; // etc... a= b; a= b; a = b; a = b; a+= b; a+= b; a += b; a += b; a%= b; a%= b; a %= b; a %= b; a&= b; a&= b; a &= b; a &= b; a>>= b; a>>= b; a >>= b; a >>= b; a<<= b; a<<= b; a <<= b; a <<= b; // etc... a=b; a=b; a =b; a =b; a+=b; a+=b; a +=b; a +=b; a%=b; a%=b; a %=b; a %=b; a&=b; a&=b; a &=b; a &=b; a>>=b; a>>=b; a >>=b; a >>=b; a<<=b; a<<=b; a <<=b; a <<=b; // etc... a= b; a= b; a = b; a = b; a+= b; a+= b; a += b; a += b; a%= b; a%= b; a %= b; a %= b; a&= b; a&= b; a &= b; a &= b; a>>= b; a>>= b; a >>= b; a >>= b; a<<= b; a<<= b; a <<= b; a <<= b; // etc... a=b; a=b; a=b; a=b; a+=b; a+=b; a+=b; a+=b; a%=b; a%=b; a%=b; a%=b; a&=b; a&=b; a&=b; a&=b; a>>=b; a>>=b; a>>=b; a>>=b; a<<><<=b; a<<><<=b; a<<><<=b; a<<><<=b; // etc...
 

Info

  fixme: maybe --tracking not invoked with the right --set
  minor bug: the output of '--tracking space:file.html' for 'a<<=b;' is buggy.
  See also sp_assign
  Edited by JEAYNE

TAGS: bug fixme

Not the best code for this option? See how to improve the .uds file used to generate these examples.