[clang] clang-format: Add "AllowShortNamespacesOnASingleLine" option (PR #105597)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 22 17:59:22 PDT 2024


================
@@ -972,6 +972,11 @@ struct FormatStyle {
   /// \version 3.7
   bool AllowShortLoopsOnASingleLine;
 
+  /// If ``true``, ``namespace a { class b; }`` can be put on a single a single
+  /// line.
----------------
owenca wrote:

```suggestion
  /// If ``true``, ``namespace a { class b; }`` can be put on a single line.
```

https://github.com/llvm/llvm-project/pull/105597


More information about the cfe-commits mailing list