| Issue |
55379
|
| Summary |
SplitEmptyRecord inconsistencies
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
yamt
|
i want to format my source code as the following.
```
struct foo {
};
struct foo2 {
int a;
};
class bar {
};
class bar2 {
int a;
};
```
with clang-format version 13.0.1,
i was able to do that with a style like the following.
(`AfterFunction: true` is actually necessary.)
```
Language: Cpp
BasedOnStyle: LLVM
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: true
AfterStruct: false
AfterClass: false
AfterUnion: false
```
however, with clang-format version 14.0.3,
it formats differently.
```
struct foo {};
struct foo2 {
int a;
};
class bar {};
class bar2 {
int a;
};
```
if i change the style to `AfterClass: true`,
they format like:
```
struct foo {
};
struct foo2 {
int a;
};
class bar
{
};
class bar2
{
int a;
};
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs