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/SharedDefs.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/SharedDefs.hpp') diff --git a/src/SharedDefs.hpp b/src/SharedDefs.hpp index 9bee7150..711cf562 100644 --- a/src/SharedDefs.hpp +++ b/src/SharedDefs.hpp @@ -5,9 +5,7 @@ #include #include -using namespace Hyprutils::Math; - -enum eIcons { +enum eIcons : uint8_t { ICON_WARNING = 0, ICON_INFO, ICON_HINT, @@ -17,7 +15,7 @@ enum eIcons { ICON_NONE }; -enum eRenderStage { +enum eRenderStage : uint8_t { RENDER_PRE = 0, /* Before binding the gl context */ RENDER_BEGIN, /* Just when the rendering begins, nothing has been rendered yet. Damage, current render data in opengl valid. */ RENDER_PRE_WINDOWS, /* Pre windows, post bottom and overlay layers */ @@ -29,7 +27,7 @@ enum eRenderStage { RENDER_POST_WINDOW, /* After rendering a window (any pass) */ }; -enum eInputType { +enum eInputType : uint8_t { INPUT_TYPE_AXIS = 0, INPUT_TYPE_BUTTON, INPUT_TYPE_DRAG_START, @@ -41,7 +39,7 @@ struct SCallbackInfo { bool cancelled = false; /* on cancellable events, will cancel the event. */ }; -enum eHyprCtlOutputFormat { +enum eHyprCtlOutputFormat : uint8_t { FORMAT_NORMAL = 0, FORMAT_JSON }; -- cgit v1.2.3