home  

sp_deref

Properties

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

Description

Add or remove space after the '*' (dereference) unary operator. This does
not affect the spacing after a '*' that is part of a type.

Default: remove
*p = 0;
i = *p;

Examples

raw CPP code sp_deref=ignore sp_deref=add sp_deref=remove sp_deref=force space
sp_deref=force
*p=*n; * p=* n; * p=* n; // not affected char*p; int(f*)(char*p); *p=*n; * p=* n; * p=* n; // not affected char*p; int(f*)(char*p); * p=* n; * p=* n; * p=* n; // not affected char*p; int(f*)(char*p); *p=*n; *p=*n; *p=*n; // not affected char*p; int(f*)(char*p); * p=* n; * p=* n; * p=* n; // not affected char*p; int(f*)(char*p); *p=*n; *p=*n; *p=*n; // not affected char*p; int(f*)(char*p);
 

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.