[clang] [clang-format] Add option AllowShortRecordsOnASingleLine (PR #154580)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 20 22:05:01 PDT 2025
=?utf-8?q?Tomáš?= Slanina <itzexpoexpo at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/154580 at github.com>
owenca wrote:
Looks like we got an inconsistency in formatting short (including empty) records. With 20.1.8 we have:
```
$ cat a.cc
struct foo {};
struct bar { int i; }
$ clang-format a.cc
struct foo {};
struct bar {
int i;
}
```
Have you investigated why? It may be worthwhile to try fixing it first.
https://github.com/llvm/llvm-project/pull/154580
More information about the cfe-commits
mailing list