| Issue |
63332
|
| Summary |
clang-format: SeparateDefinitionBlocks should have an exception for short blocks
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
C4rsten
|
Config:
```
AllowShortFunctionsOnASingleLine: All
SeparateDefinitionBlocks: Always
```
Formats:
```
void f() { foo(); }
void g() { bar(); }
```
Not a bug, but it stops me from using `SeparateDefinitionBlocks: Always`, because I would like my one-line functions, especially those inside a class definition to remain close together like this:
```
void f() { foo(); }
void g() { bar(); }
```
Something like `SeparateDefinitionBlocks: AlwaysExceptShort` would be very welcome.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs