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/devices/IHID.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/devices/IHID.hpp') diff --git a/src/devices/IHID.hpp b/src/devices/IHID.hpp index 4a0ff8fd..b9cc4212 100644 --- a/src/devices/IHID.hpp +++ b/src/devices/IHID.hpp @@ -4,14 +4,14 @@ #include #include "../helpers/signal/Signal.hpp" -enum eHIDCapabilityType : uint32_t { +enum eHIDCapabilityType : uint8_t { HID_INPUT_CAPABILITY_KEYBOARD = (1 << 0), HID_INPUT_CAPABILITY_POINTER = (1 << 1), HID_INPUT_CAPABILITY_TOUCH = (1 << 2), HID_INPUT_CAPABILITY_TABLET = (1 << 3), }; -enum eHIDType { +enum eHIDType : uint8_t { HID_TYPE_UNKNOWN = 0, HID_TYPE_POINTER, HID_TYPE_KEYBOARD, @@ -27,7 +27,7 @@ enum eHIDType { */ class IHID { public: - virtual ~IHID() {} + virtual ~IHID() = default; virtual uint32_t getCapabilities() = 0; virtual eHIDType getType(); -- cgit v1.2.3