Skip to content

Commit

Permalink
style: adjust clang-format settings and improve code readability in U…
Browse files Browse the repository at this point in the history
…DPServer class
  • Loading branch information
MasterLaplace committed Nov 11, 2024
1 parent 4fef4cf commit a51fe57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Language: Cpp
BasedOnStyle: LLVM
Standard: c++20
AccessModifierOffset: 0
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Left
AlignConsecutiveMacros: Consecutive
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: patch
dry_run: true

- name: Run version bump script
Expand Down
9 changes: 4 additions & 5 deletions Flakkari/Server/UDPServer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@

namespace Flakkari {

#define INIT_LOOP \
loop:
#define INIT_LOOP loop:
#define GOTO_LOOP goto loop;

#ifndef STDIN_FILENO
Expand Down Expand Up @@ -53,7 +52,7 @@ namespace Flakkari {
* @endcode
*/
class UDPServer {
public:
public:
/**
* @brief Construct a new UDPServer object
*
Expand All @@ -72,7 +71,7 @@ class UDPServer {
*/
void run();

private:
private:
/**
* @brief Handle the timeout of the server (check for inactive clients)
*
Expand All @@ -97,7 +96,7 @@ class UDPServer {
*/
void handlePacket();

private:
private:
std::shared_ptr<Network::Socket> _socket;
std::unique_ptr<IO_SELECTED> _io;
};
Expand Down

0 comments on commit a51fe57

Please sign in to comment.