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: https://projects.blender.org/blender/blender/pulls/105594
This commit is contained in:
committed by
Sergey Sharybin
parent
cc7634f2ea
commit
d32d787f5f
@@ -20,9 +20,7 @@
|
||||
*/
|
||||
class VirtualMemoryAllocator {
|
||||
public:
|
||||
virtual ~VirtualMemoryAllocator()
|
||||
{
|
||||
}
|
||||
virtual ~VirtualMemoryAllocator() {}
|
||||
|
||||
virtual void *allocate() = 0;
|
||||
virtual void deallocate(void *obj) = 0;
|
||||
|
||||
@@ -75,9 +75,7 @@ class CubeTriangleIsect {
|
||||
CubeProjection cubeProj[NUM_AXES];
|
||||
|
||||
public:
|
||||
CubeTriangleIsect()
|
||||
{
|
||||
}
|
||||
CubeTriangleIsect() {}
|
||||
|
||||
/**
|
||||
* Construction from a cube (axes aligned) and triangle
|
||||
|
||||
@@ -131,9 +131,7 @@ class DualConInputReader : public ModelReader {
|
||||
}
|
||||
|
||||
/* stubs */
|
||||
void printInfo()
|
||||
{
|
||||
}
|
||||
void printInfo() {}
|
||||
int getMemory()
|
||||
{
|
||||
return sizeof(DualConInputReader);
|
||||
|
||||
Reference in New Issue
Block a user