sp_before_assign
Category: Spacing options Type: multiple (ignore add remove force) Default: ignore
Add or remove space before assignment operator '=', '+=', etc. Overrides sp_assign.
a=b
raw CPP code | sp_before_assign=ignore | sp_before_assign=add | sp_before_assign=remove | sp_before_assign=force | space sp_before_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... |
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.