Skip to content

Commit

Permalink
Format all source with clang-format. (MisterTea#552)
Browse files Browse the repository at this point in the history
A clang-format action was added to validate our source files during PR
review so this will get our code to be compliant in preparation for that
new github action.
  • Loading branch information
jshort authored Dec 7, 2022
1 parent ce6645f commit 91099f6
Show file tree
Hide file tree
Showing 32 changed files with 314 additions and 326 deletions.
8 changes: 6 additions & 2 deletions proto/ET.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ message ConnectResponse {
optional string error = 2;
}

message SequenceHeader { optional int32 sequenceNumber = 1; }
message SequenceHeader {
optional int32 sequenceNumber = 1;
}

message CatchupBuffer { repeated bytes buffer = 1; }
message CatchupBuffer {
repeated bytes buffer = 1;
}

message SocketEndpoint {
optional string name = 1;
Expand Down
3 changes: 1 addition & 2 deletions src/base/BackedReader.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#ifndef __ET_BACKED_READER__
#define __ET_BACKED_READER__

#include "Headers.hpp"

#include "CryptoHandler.hpp"
#include "Headers.hpp"
#include "Packet.hpp"
#include "SocketHandler.hpp"

Expand Down
3 changes: 1 addition & 2 deletions src/base/BackedWriter.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#ifndef __ET_BACKED_WRITER__
#define __ET_BACKED_WRITER__

#include "Headers.hpp"

#include "CryptoHandler.hpp"
#include "Headers.hpp"
#include "Packet.hpp"
#include "SocketHandler.hpp"

Expand Down
3 changes: 1 addition & 2 deletions src/base/ClientConnection.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#ifndef __ET_CLIENT_CONNECTION__
#define __ET_CLIENT_CONNECTION__

#include "Headers.hpp"

#include "Connection.hpp"
#include "Headers.hpp"

namespace et {
extern const int NULL_CLIENT_ID;
Expand Down
3 changes: 1 addition & 2 deletions src/base/Connection.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#ifndef __ET_CONNECTION__
#define __ET_CONNECTION__

#include "Headers.hpp"

#include "BackedReader.hpp"
#include "BackedWriter.hpp"
#include "Headers.hpp"
#include "SocketHandler.hpp"

namespace et {
Expand Down
4 changes: 2 additions & 2 deletions src/base/CryptoHandler.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef __ET_CRYPTO_HANDLER__
#define __ET_CRYPTO_HANDLER__

#include "Headers.hpp"

#include <sodium.h>

#include "Headers.hpp"

namespace et {

class CryptoHandler {
Expand Down
Loading

0 comments on commit 91099f6

Please sign in to comment.