From a51fe5720428407f3536e92f2ef8bfd2fac4e3c3 Mon Sep 17 00:00:00 2001 From: MasterLaplace Date: Mon, 11 Nov 2024 10:04:26 -0500 Subject: [PATCH] style: adjust clang-format settings and improve code readability in UDPServer class --- .clang-format | 2 +- .github/workflows/create_release.yml | 1 + Flakkari/Server/UDPServer.hpp | 9 ++++----- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.clang-format b/.clang-format index 48fe2550..91bd2aa1 100644 --- a/.clang-format +++ b/.clang-format @@ -2,7 +2,7 @@ Language: Cpp BasedOnStyle: LLVM Standard: c++20 -AccessModifierOffset: 0 +AccessModifierOffset: -4 AlignAfterOpenBracket: Align AlignArrayOfStructures: Left AlignConsecutiveMacros: Consecutive diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index b0e45ac8..fe30b97f 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -28,6 +28,7 @@ jobs: uses: mathieudutour/github-tag-action@v6.2 with: github_token: ${{ secrets.GITHUB_TOKEN }} + default_bump: patch dry_run: true - name: Run version bump script diff --git a/Flakkari/Server/UDPServer.hpp b/Flakkari/Server/UDPServer.hpp index ffd265a2..a3de2bf2 100644 --- a/Flakkari/Server/UDPServer.hpp +++ b/Flakkari/Server/UDPServer.hpp @@ -24,8 +24,7 @@ namespace Flakkari { -#define INIT_LOOP \ -loop: +#define INIT_LOOP loop: #define GOTO_LOOP goto loop; #ifndef STDIN_FILENO @@ -53,7 +52,7 @@ namespace Flakkari { * @endcode */ class UDPServer { - public: +public: /** * @brief Construct a new UDPServer object * @@ -72,7 +71,7 @@ class UDPServer { */ void run(); - private: +private: /** * @brief Handle the timeout of the server (check for inactive clients) * @@ -97,7 +96,7 @@ class UDPServer { */ void handlePacket(); - private: +private: std::shared_ptr _socket; std::unique_ptr _io; };