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