From 8bbeee11734d3ba8e2cf15d19cb3c302f8bfdbf2 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sat, 7 Dec 2024 18:51:18 +0100 Subject: core: Add clang-tidy (#8664) This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright. --- src/protocols/WaylandProtocol.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/protocols/WaylandProtocol.hpp') diff --git a/src/protocols/WaylandProtocol.hpp b/src/protocols/WaylandProtocol.hpp index 056322ac..e3507708 100644 --- a/src/protocols/WaylandProtocol.hpp +++ b/src/protocols/WaylandProtocol.hpp @@ -41,7 +41,7 @@ } while (0) class IWaylandProtocol; -struct IWaylandProtocolDestroyWrapper { +struct SIWaylandProtocolDestroyWrapper { wl_listener listener; IWaylandProtocol* parent = nullptr; }; @@ -51,13 +51,13 @@ class IWaylandProtocol { IWaylandProtocol(const wl_interface* iface, const int& ver, const std::string& name); virtual ~IWaylandProtocol(); - virtual void onDisplayDestroy(); - virtual void removeGlobal(); - virtual wl_global* getGlobal(); + virtual void onDisplayDestroy(); + virtual void removeGlobal(); + virtual wl_global* getGlobal(); - virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id) = 0; + virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id) = 0; - IWaylandProtocolDestroyWrapper m_liDisplayDestroy; + SIWaylandProtocolDestroyWrapper m_liDisplayDestroy; private: std::string m_szName; -- cgit v1.2.3