Suggested formatting for namespaces in the developer guide is currently inconsistent. This commit updates the developer guide and clang-format configuration to consistently put “namespace” and opening/closing braces on the same line. Example:
0namespace boost {
1namespace signals2 {
2class connection;
3} // namespace signals2
4} // namespace boost
Currently the Source code organization section has an example like the one above, but the Coding style section example and description put a newline between the opening “namespace foo” and brace (but oddly no newline between closing namespace and brace).
Avoiding newlines before namespace opening braces makes nested declarations less verbose and also avoids asymmetry with closing braces. It’s also a common style used in our own and other codebases: