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:
Sergey Sharybin
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

@@ -20,9 +20,7 @@
*/
class VirtualMemoryAllocator {
public:
virtual ~VirtualMemoryAllocator()
{
}
virtual ~VirtualMemoryAllocator() {}
virtual void *allocate() = 0;
virtual void deallocate(void *obj) = 0;

View File

@@ -75,9 +75,7 @@ class CubeTriangleIsect {
CubeProjection cubeProj[NUM_AXES];
public:
CubeTriangleIsect()
{
}
CubeTriangleIsect() {}
/**
* Construction from a cube (axes aligned) and triangle

View File

@@ -131,9 +131,7 @@ class DualConInputReader : public ModelReader {
}
/* stubs */
void printInfo()
{
}
void printInfo() {}
int getMemory()
{
return sizeof(DualConInputReader);