c++ - Is there a way to configure clang-format to keep nested namespace declarations on the same line? -
in codebase i'm working in, declare nested namespaces thusly:
namespace foo { namespace detail { // stuff } } // foo::detail namespace i haven't yet been able find way configure clang-format not break out multiple lines:
namespace foo { namespace detail { // stuff } } // foo::detail namespace i've played around breakbeforebraces configuration, , i've looked new bracewrapping configuration in clang 3.8, both without success.
is possible without annotating code // clang-format [on/off]?
it turns out feature has been considered clang-format team, has been rejected. additional details, see https://llvm.org/bugs/show_bug.cgi?id=17928.
Comments
Post a Comment