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

@@ -23,20 +23,12 @@ template<typename _Tp> struct MEM_Allocator {
typedef MEM_Allocator<_Tp1> other;
};
MEM_Allocator() throw()
{
}
MEM_Allocator(const MEM_Allocator &) throw()
{
}
MEM_Allocator() throw() {}
MEM_Allocator(const MEM_Allocator &) throw() {}
template<typename _Tp1> MEM_Allocator(const MEM_Allocator<_Tp1>) throw()
{
}
template<typename _Tp1> MEM_Allocator(const MEM_Allocator<_Tp1>) throw() {}
~MEM_Allocator() throw()
{
}
~MEM_Allocator() throw() {}
pointer address(reference __x) const
{

View File

@@ -27,9 +27,7 @@ class MEM_RefCounted {
/**
* Constructs a shared object.
*/
MEM_RefCounted() : m_refCount(1)
{
}
MEM_RefCounted() : m_refCount(1) {}
/**
* Returns the reference count of this object.
@@ -55,9 +53,7 @@ class MEM_RefCounted {
* Destructs a shared object.
* The destructor is protected to force the use of incRef and decRef.
*/
virtual ~MEM_RefCounted()
{
}
virtual ~MEM_RefCounted() {}
protected:
/** The reference count. */