sp_before_vardef_square
Category: Spacing options Type: multiple (ignore add remove force) Default: remove
Add or remove space before '[' for a variable definition. Default: remove
type var[...
raw CPP code | sp_before_vardef_square=ignore | sp_before_vardef_square=add | sp_before_vardef_square=remove | sp_before_vardef_square=force | space sp_before_vardef_square=force |
---|---|---|---|---|---|
char str[10]; char str [10]; char str [10]; // not affected char str[] = "Hello"; str[i]=0; | char str[10]; char str [10]; char str [10]; // not affected char str[] = "Hello"; str[i]=0; | char str [10]; char str [10]; char str [10]; // not affected char str[] = "Hello"; str[i]=0; | char str[10]; char str[10]; char str[10]; // not affected char str[] = "Hello"; str[i]=0; | char str [10]; char str [10]; char str [10]; // not affected char str[] = "Hello"; str[i]=0; | charstr[10]; charstr[10]; charstr[10]; // not affected charstr[]="Hello"; str[i]=0; |
Take care, the 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.