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/Tablet.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/devices/Tablet.hpp') diff --git a/src/devices/Tablet.hpp b/src/devices/Tablet.hpp index 8f49c984..c3a9a2c9 100644 --- a/src/devices/Tablet.hpp +++ b/src/devices/Tablet.hpp @@ -3,7 +3,6 @@ #include "IHID.hpp" #include "../macros.hpp" #include "../helpers/math/Math.hpp" -#include "../helpers/math/Math.hpp" AQUAMARINE_FORWARD(ITablet); AQUAMARINE_FORWARD(ITabletTool); @@ -27,7 +26,7 @@ class CTablet : public IHID { virtual eHIDType getType(); SP aq(); - enum eTabletToolAxes { + enum eTabletToolAxes : uint16_t { HID_TABLET_TOOL_AXIS_X = (1 << 0), HID_TABLET_TOOL_AXIS_Y = (1 << 1), HID_TABLET_TOOL_AXIS_TILT_X = (1 << 2), @@ -173,7 +172,7 @@ class CTabletTool : public IHID { static SP create(SP tool); ~CTabletTool(); - enum eTabletToolType { + enum eTabletToolType : uint8_t { HID_TABLET_TOOL_TYPE_PEN = 1, HID_TABLET_TOOL_TYPE_ERASER, HID_TABLET_TOOL_TYPE_BRUSH, @@ -184,7 +183,7 @@ class CTabletTool : public IHID { HID_TABLET_TOOL_TYPE_TOTEM, }; - enum eTabletToolCapabilities { + enum eTabletToolCapabilities : uint8_t { HID_TABLET_TOOL_CAPABILITY_TILT = (1 << 0), HID_TABLET_TOOL_CAPABILITY_PRESSURE = (1 << 1), HID_TABLET_TOOL_CAPABILITY_DISTANCE = (1 << 2), -- cgit v1.2.3