[clang] clang-format: Add "AllowShortNamespacesOnASingleLine" option (PR #105597)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 27 19:19:59 PST 2024
================
@@ -988,6 +988,10 @@ struct FormatStyle {
/// \version 3.7
bool AllowShortLoopsOnASingleLine;
+ /// If ``true``, ``namespace a { class b; }`` can be put on a single line.
+ /// \version 20
+ bool AllowShortNamespacesOnASingleLine;
----------------
owenca wrote:
You need to add it to `operator==()`.
https://github.com/llvm/llvm-project/pull/105597
More information about the cfe-commits
mailing list