nl_after_case
Category: Newline adding and removing options Type: boolean [false, true] Default: false
Whether to add a newline after a 'case' statement.
raw CPP code | nl_after_case=false | nl_after_case=true | nl nl_after_case=true |
---|---|---|---|
void f(){switch(a){case 1:a++;break;case -1:a--;case 123:a--;break;default:a=0;}} | void f(){ switch(a){case 1: a++; break; case -1: a--; case 123: a--; break; default: a=0;} } | void f(){ switch(a){case 1: a++; break; case -1: a--; case 123: a--; break; default: a=0;} } | void f(){ switch(a){case 1: a++;break;case -1: a--;case 123: a--;break;default: a=0;} } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.