sp_paren_comma
Category: Spacing options Type: multiple (ignore add remove force) Default: force
Add or remove space between an open parenthesis and comma, i.e. '(,' vs. '( ,'. Default: force
Macro(,x)
raw CPP code | sp_paren_comma=ignore | sp_paren_comma=add | sp_paren_comma=remove | sp_paren_comma=force | space sp_paren_comma=force |
---|---|---|---|---|---|
// #define Macro(a,b) a ## b Macro(,x) Macro( ,x) Macro( ,x) Macro(, ) Macro( , ) Macro( , ) | // #define Macro(a,b) a ## b Macro(,x) Macro( ,x) Macro( ,x) Macro(, ) Macro( , ) Macro( , ) | // #define Macro(a,b) a ## b Macro( ,x) Macro( ,x) Macro( ,x) Macro( , ) Macro( , ) Macro( , ) | // #define Macro(a,b) a ## b Macro(,x) Macro(,x) Macro(,x) Macro(, ) Macro(, ) Macro(, ) | // #define Macro(a,b) a ## b Macro( ,x) Macro( ,x) Macro( ,x) Macro( , ) Macro( , ) Macro( , ) | // #define Macro(a,b) a ## b Macro(,x) Macro(,x) Macro(,x) Macro(,) Macro(,) Macro(,) |
This syntax (, is only possible when invoking a function-like macro taking more than 1 argument, so,'sp_macro_paren_comma' would have been a better name. Take care, default is 'force' Edited by JEAYNE
Not the best code for this option? See how to improve the .uds file used to generate these examples.