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

@@ -25,13 +25,9 @@ void BPY_pyconstraint_exec(struct bPythonConstraint *con,
struct ListBase *targets)
{
}
void BPY_pyconstraint_target(struct bPythonConstraint *con, struct bConstraintTarget *ct)
{
}
void BPY_pyconstraint_target(struct bPythonConstraint *con, struct bConstraintTarget *ct) {}
bool BPY_is_pyconstraint(struct Text *text)
{
return 0;
}
void BPY_pyconstraint_update(struct Object *owner, struct bConstraint *con)
{
}
void BPY_pyconstraint_update(struct Object *owner, struct bConstraint *con) {}