home  

nl_namespace_brace

Properties

  Category: Newline adding and removing options
      Type: multiple (ignore add remove force)
   Default: ignore

Description

Add or remove newline between 'namespace' and '{'.

Examples

raw CPP code nl_namespace_brace=ignore nl_namespace_brace=add nl_namespace_brace=remove nl_namespace_brace=force nl
nl_namespace_brace=force
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.