home  

nl_before_return

Properties

  Category: Newline adding and removing options
      Type: boolean [false, true]
   Default: false

Description

Whether to put a blank line before 'return' statements, unless after an open
brace.

Examples

raw CPP code nl_before_return=false nl_before_return=true nl
nl_before_return=true
void f(){return;} int f(){return a+b;} int f(){return(a+b);} void f(){ return; } int f(){ return a+b; } int f(){ return(a+b); } void f(){ return; } int f(){ return a+b; } int f(){ return(a+b); } void f(){ return; } int f(){ return a+b; } int f(){ return(a+b); }
 

Not the best code for this option? See how to improve the .uds file used to generate these examples.