diff options
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | ingen/World.hpp | 10 | ||||
-rw-r--r-- | src/server/Buffer.hpp | 2 | ||||
-rw-r--r-- | src/server/PortImpl.hpp | 2 |
4 files changed, 7 insertions, 8 deletions
diff --git a/.clang-tidy b/.clang-tidy index f97db16d..f59375f4 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -51,7 +51,6 @@ Checks: > -llvm-header-guard, -misc-unused-parameters, -modernize-use-trailing-return-type, - -modernize-use-using, -portability-simd-intrinsics, -readability-avoid-const-params-in-decls, -readability-const-return-type, diff --git a/ingen/World.hpp b/ingen/World.hpp index b5fc7350..e06c0a18 100644 --- a/ingen/World.hpp +++ b/ingen/World.hpp @@ -26,7 +26,7 @@ #include <mutex> #include <string> -typedef struct LilvWorldImpl LilvWorld; +using LilvWorld = struct LilvWorldImpl; namespace Sord { class World; } @@ -89,10 +89,10 @@ public: virtual bool run_module(const char* name); /** A function to create a new remote Interface. */ - typedef SPtr<Interface> (*InterfaceFactory)( - World& world, - const URI& engine_uri, - const SPtr<Interface>& respondee); + using InterfaceFactory = + SPtr<Interface> (*)(World& world, + const URI& engine_uri, + const SPtr<Interface>& respondee); /** Register an InterfaceFactory (for module implementations). */ virtual void add_interface_factory(const std::string& scheme, diff --git a/src/server/Buffer.hpp b/src/server/Buffer.hpp index 3e7eb753..57db16dd 100644 --- a/src/server/Buffer.hpp +++ b/src/server/Buffer.hpp @@ -69,7 +69,7 @@ public: return is_audio() ? _capacity : sizeof(LV2_Atom) + get<LV2_Atom>()->size; } - typedef BufferRef (BufferFactory::*GetFn)(LV2_URID, LV2_URID, uint32_t); + using GetFn = BufferRef (BufferFactory::*)(LV2_URID, LV2_URID, uint32_t); /** Set the buffer type and optional value type for this buffer. * diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp index fa204310..c0d44ef6 100644 --- a/src/server/PortImpl.hpp +++ b/src/server/PortImpl.hpp @@ -266,7 +266,7 @@ public: bool is_toggled() const { return _is_toggled; } protected: - typedef BufferRef (BufferFactory::*GetFn)(LV2_URID, LV2_URID, uint32_t); + using GetFn = BufferRef (BufferFactory::*)(LV2_URID, LV2_URID, uint32_t); /** Set `voices` as the buffers to be used for this port. * |