sp_assign
Category: Spacing options Type: multiple (ignore add remove force) Default: ignore
Add or remove space around assignment operator '=', '+=', etc.
a=b
raw CPP code | sp_assign=ignore | sp_assign=add | sp_assign=remove | sp_assign=force | space sp_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... |
minor bug: the output of '--tracking space:file.html' for 'a<<=b;' is buggy. See also: sp_after_assign sp_before_assign sp_assign_default sp_cpp_lambda_assign Edited by JEAYNE
TAGS: bug
Not the best code for this option? See how to improve the .uds file used to generate these examples.