sp_before_tr_emb_cmt

Add or remove space before a trailing or embedded comment.

Possible values are ignore, add, remove and force, default ignore.

If sp_num_before_tr_emb_cmt is not specified then add and force will add 1 space, else they will add sp_num_before_tr_emb_cmt spaces.

Examples

Add

Before:

int x = 10;      // this is trailing comment
int sum  =  0;// another trailing comment

After

int x = 10;      // this is trailing comment
int sum  =  0; // another trailing comment

Remove

Before

int x = 10;      // this is trailing comment
int sum  =  0;   // another trailing comment

After

int x = 10;// this is trailing comment
int sum  =  0;// another trailing comment

See also