[clang] clang-format: Add "AllowShortNamespacesOnASingleLine" option (PR #105597)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 6 23:46:30 PDT 2024
https://github.com/owenca commented:
The following are missing:
- Run `dump_format_style.py`.
- Add a `ConfigParseTest` for the new option.
How does the new option interact with `CompactNamespaces`? For example:
- `AllowShortNamespacesOnASingleLine: true` and `CompactNamespaces: false`
```
namespace a {
namespace b { class c; }
} // namespace a
```
- Both `true`
`namespace a { namespace b { class c; } }`
https://github.com/llvm/llvm-project/pull/105597
More information about the cfe-commits
mailing list