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:
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user