[clang] [clang-format] Add option to omit wrapping for empty records (PR #151970)
Tomáš Slanina via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 19 03:28:57 PDT 2025
itzexpoexpo wrote:
My patch targets *empty* records specifically, an `AllowShortRecordOnASingleLine` option equivalent to the existing ones would probably format my example as:
```
struct foo { int i; };
struct bar {};
```
I feel it's functionally closer to the `SplitEmpty...` options instead.
https://github.com/llvm/llvm-project/pull/151970
More information about the cfe-commits
mailing list