home  

sp_incdec

Properties

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

Description

Add or remove space between '++' and '--' the word to which it is being
applied, as in '(--x)' or 'y++;'.

Default: remove
 ++x; x++;
 --x; x--;

Examples

raw CPP code sp_incdec=ignore sp_incdec=add sp_incdec=remove sp_incdec=force space
sp_incdec=force
++x; ++x; ++ x; ++ x; ++ x; ++ x; --y; --y; -- y; -- y; -- y; -- y; ++x; ++x; ++ x; ++ x; ++ x; ++ x; --y; --y; -- y; -- y; -- y; -- y; ++ x; ++ x; ++ x; ++ x; ++ x; ++ x; -- y; -- y; -- y; -- y; -- y; -- y; ++x; ++x; ++x; ++x; ++x; ++x; --y; --y; --y; --y; --y; --y; ++ x; ++ x; ++ x; ++ x; ++ x; ++ x; -- y; -- y; -- y; -- y; -- y; -- y; ++x;++x; ++x;++x; ++x;++x; --y;--y; --y;--y; --y;--y;
 

Info

  Take care, default is 'remove'
  Edited by JEAYNE

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