home  

nl_before_namespace

Properties

  Category: Blank line options
      Type: numeric [0 .. 16]
   Default: 0

Description

The number of newlines before a namespace.

Examples

raw CPP code nl_before_namespace=0 nl_before_namespace=5 nl_before_namespace=10 nl_before_namespace=16 nl
nl_before_namespace=0
using namespace std::string_literals; namespace A{int i;}; namespace B{int i;int j;namespace C{namespace D{int k;}}} using namespace std::string_literals; namespace A {int i;}; namespace B {int i; int j; namespace C {namespace D {int k;}}} using namespace std::string_literals; namespace A {int i;}; namespace B {int i; int j; namespace C {namespace D {int k;}}} using namespace std::string_literals; namespace A {int i;}; namespace B {int i; int j; namespace C {namespace D {int k;}}} using namespace std::string_literals; namespace A {int i;}; namespace B {int i; int j; namespace C {namespace D {int k;}}} using namespace std::string_literals; namespace A {int i;}; namespace B {int i;int j;namespace C {namespace D {int k;}}}
 

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