indent_namespace_single_indent
Category: Indenting options Type: boolean [false, true] Default: false
Whether to indent only the first namespace, and not any nested namespaces. Requires indent_namespace=true.
raw CPP code | indent_namespace_single_indent=false | indent_namespace_single_indent=true |
---|---|---|
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.