diff options
author | David Robillard <d@drobilla.net> | 2022-07-20 11:05:07 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-20 16:24:23 -0400 |
commit | e883d87e43b06b54a810413d0a728ace1e9c26a0 (patch) | |
tree | 1e11f8a40ff91f4c78b870c08337979fbc052691 /include/raul | |
parent | d7653e3feed6da300d4cff31860d6c26b24ec329 (diff) | |
download | raul-e883d87e43b06b54a810413d0a728ace1e9c26a0.tar.gz raul-e883d87e43b06b54a810413d0a728ace1e9c26a0.tar.bz2 raul-e883d87e43b06b54a810413d0a728ace1e9c26a0.zip |
Clean up special member functions and format with clang-format 14
Diffstat (limited to 'include/raul')
-rw-r--r-- | include/raul/Deletable.hpp | 7 | ||||
-rw-r--r-- | include/raul/DoubleBuffer.hpp | 7 | ||||
-rw-r--r-- | include/raul/Maid.hpp | 14 | ||||
-rw-r--r-- | include/raul/Noncopyable.hpp | 7 | ||||
-rw-r--r-- | include/raul/Path.hpp | 7 | ||||
-rw-r--r-- | include/raul/RingBuffer.hpp | 7 | ||||
-rw-r--r-- | include/raul/Semaphore.hpp | 7 | ||||
-rw-r--r-- | include/raul/Socket.hpp | 7 | ||||
-rw-r--r-- | include/raul/Symbol.hpp | 7 |
9 files changed, 30 insertions, 40 deletions
diff --git a/include/raul/Deletable.hpp b/include/raul/Deletable.hpp index a510690..018de2b 100644 --- a/include/raul/Deletable.hpp +++ b/include/raul/Deletable.hpp @@ -16,11 +16,10 @@ class Deletable public: Deletable() = default; - Deletable(const Deletable&) = default; + Deletable(const Deletable&) = default; Deletable& operator=(const Deletable&) = default; - - Deletable(Deletable&&) = default; - Deletable& operator=(Deletable&&) = default; + Deletable(Deletable&&) = default; + Deletable& operator=(Deletable&&) = default; virtual ~Deletable() = default; }; diff --git a/include/raul/DoubleBuffer.hpp b/include/raul/DoubleBuffer.hpp index 6755a20..f904bd4 100644 --- a/include/raul/DoubleBuffer.hpp +++ b/include/raul/DoubleBuffer.hpp @@ -30,11 +30,10 @@ public: , _vals{std::move(val), {}} {} - DoubleBuffer(const DoubleBuffer&) = delete; + DoubleBuffer(const DoubleBuffer&) = delete; DoubleBuffer& operator=(const DoubleBuffer&) = delete; - - DoubleBuffer(DoubleBuffer&&) = delete; - DoubleBuffer& operator=(DoubleBuffer&&) = delete; + DoubleBuffer(DoubleBuffer&&) = delete; + DoubleBuffer& operator=(DoubleBuffer&&) = delete; ~DoubleBuffer() = default; diff --git a/include/raul/Maid.hpp b/include/raul/Maid.hpp index 51e2dca..31a7331 100644 --- a/include/raul/Maid.hpp +++ b/include/raul/Maid.hpp @@ -33,11 +33,10 @@ public: public: Disposable() = default; - Disposable(const Disposable&) = delete; + Disposable(const Disposable&) = delete; Disposable& operator=(const Disposable&) = delete; - - Disposable(Disposable&&) = delete; - Disposable& operator=(Disposable&&) = delete; + Disposable(Disposable&&) = delete; + Disposable& operator=(Disposable&&) = delete; ~Disposable() override = default; @@ -94,11 +93,10 @@ public: : _disposed(nullptr) {} - Maid(const Maid&) = delete; + Maid(const Maid&) = delete; Maid& operator=(const Maid&) = delete; - - Maid(Maid&&) = delete; - Maid& operator=(Maid&&) = delete; + Maid(Maid&&) = delete; + Maid& operator=(Maid&&) = delete; ~Maid() { cleanup(); } diff --git a/include/raul/Noncopyable.hpp b/include/raul/Noncopyable.hpp index 091609f..9d34d27 100644 --- a/include/raul/Noncopyable.hpp +++ b/include/raul/Noncopyable.hpp @@ -14,11 +14,10 @@ namespace raul { class Noncopyable { public: - Noncopyable(const Noncopyable&) = delete; + Noncopyable(const Noncopyable&) = delete; const Noncopyable& operator=(const Noncopyable&) = delete; - - Noncopyable(Noncopyable&&) = delete; - Noncopyable& operator=(Noncopyable&&) = delete; + Noncopyable(Noncopyable&&) = delete; + Noncopyable& operator=(Noncopyable&&) = delete; protected: Noncopyable() = default; diff --git a/include/raul/Path.hpp b/include/raul/Path.hpp index 0be7e99..b204bab 100644 --- a/include/raul/Path.hpp +++ b/include/raul/Path.hpp @@ -66,11 +66,10 @@ public: } } - Path(const Path& path) = default; + Path(const Path& path) = default; Path& operator=(const Path& path) = default; - - Path(Path&& path) = default; - Path& operator=(Path&& path) = default; + Path(Path&& path) = default; + Path& operator=(Path&& path) = default; ~Path() = default; diff --git a/include/raul/RingBuffer.hpp b/include/raul/RingBuffer.hpp index c326cb9..acb4115 100644 --- a/include/raul/RingBuffer.hpp +++ b/include/raul/RingBuffer.hpp @@ -39,11 +39,10 @@ public: assert(write_space() == _size - 1); } - RingBuffer(const RingBuffer&) = delete; + RingBuffer(const RingBuffer&) = delete; RingBuffer& operator=(const RingBuffer&) = delete; - - RingBuffer(RingBuffer&&) = delete; - RingBuffer& operator=(RingBuffer&&) = delete; + RingBuffer(RingBuffer&&) = delete; + RingBuffer& operator=(RingBuffer&&) = delete; ~RingBuffer() = default; diff --git a/include/raul/Semaphore.hpp b/include/raul/Semaphore.hpp index 2cf93db..7d70f60 100644 --- a/include/raul/Semaphore.hpp +++ b/include/raul/Semaphore.hpp @@ -52,11 +52,10 @@ public: } } - Semaphore(const Semaphore&) = delete; + Semaphore(const Semaphore&) = delete; Semaphore& operator=(const Semaphore&) = delete; - - Semaphore(Semaphore&&) = delete; - Semaphore& operator=(Semaphore&&) = delete; + Semaphore(Semaphore&&) = delete; + Semaphore& operator=(Semaphore&&) = delete; ~Semaphore() { destroy(); } diff --git a/include/raul/Socket.hpp b/include/raul/Socket.hpp index db51645..28a3c3a 100644 --- a/include/raul/Socket.hpp +++ b/include/raul/Socket.hpp @@ -35,11 +35,10 @@ public: /// Wrap an existing open socket Socket(Type t, std::string uri, sockaddr* addr, socklen_t addr_len, int fd); - Socket(const Socket&) = delete; + Socket(const Socket&) = delete; Socket& operator=(const Socket&) = delete; - - Socket(Socket&&) = delete; - Socket& operator=(Socket&&) = delete; + Socket(Socket&&) = delete; + Socket& operator=(Socket&&) = delete; ~Socket(); diff --git a/include/raul/Symbol.hpp b/include/raul/Symbol.hpp index e362f4d..714657c 100644 --- a/include/raul/Symbol.hpp +++ b/include/raul/Symbol.hpp @@ -64,11 +64,10 @@ public: } } - Symbol(const Symbol& symbol) = default; + Symbol(const Symbol& symbol) = default; Symbol& operator=(const Symbol& symbol) = default; - - Symbol(Symbol&& symbol) = default; - Symbol& operator=(Symbol&& symbol) = default; + Symbol(Symbol&& symbol) = default; + Symbol& operator=(Symbol&& symbol) = default; ~Symbol() = default; |