================ @@ -5057,6 +5057,21 @@ struct FormatStyle { /// \version 11 std::vector<std::string> WhitespaceSensitiveMacros; + /// Insert a newline at the begging and at the end of namespace definition + /// \code + /// false: vs. true: + /// + /// namespace a { namespace a { + /// namespace b { namespace b { + /// function(); + /// } function(); + /// } + /// } + /// } + /// \endcode + /// \version 19 + bool WrapNamespaceBodyWithNewlines; ---------------- dmasloff wrote:
Could you confirm my guess about behavior of this options? - Always: fixes all namespaces with 1 additional newline at the begging and at the end of namespace - Never: removes all newlines at the begging and at the end of namespace - Leave: doesn't affect this aspect of user code https://github.com/llvm/llvm-project/pull/106145 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits