Clang-Format: Allow empty functions to be single-line

For example

```
OIIOOutputDriver::~OIIOOutputDriver()
{
}
```

becomes

```
OIIOOutputDriver::~OIIOOutputDriver() {}
```

Saves quite some vertical space, which is especially handy for
constructors.

Pull Request: blender/blender#105594
This commit is contained in:
2023-03-29 16:50:54 +02:00
committed by Sergey Sharybin
parent cc7634f2ea
commit d32d787f5f
517 changed files with 1114 additions and 3340 deletions

View File

@@ -30,9 +30,7 @@ TEST(field, ConstantFunction)
class IndexFieldInput final : public FieldInput {
public:
IndexFieldInput() : FieldInput(CPPType::get<int>(), "Index")
{
}
IndexFieldInput() : FieldInput(CPPType::get<int>(), "Index") {}
GVArray get_varray_for_context(const FieldContext & /*context*/,
IndexMask mask,