1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:37:36 +00:00

Meta: Tweak .clang-format to not wrap braces after enums.

This commit is contained in:
Andreas Kling 2019-06-07 17:13:23 +02:00
parent 9145917bf0
commit 39d1a9ae66
97 changed files with 186 additions and 312 deletions

View file

@ -5,16 +5,14 @@
#include <Kernel/Net/MACAddress.h>
struct ARPOperation {
enum : word
{
enum : word {
Request = 1,
Response = 2,
};
};
struct ARPHardwareType {
enum : word
{
enum : word {
Ethernet = 1,
};
};

View file

@ -3,8 +3,7 @@
#include <AK/Types.h>
struct EtherType {
enum : word
{
enum : word {
ARP = 0x0806,
IPv4 = 0x0800,
};

View file

@ -4,8 +4,7 @@
#include <Kernel/Net/MACAddress.h>
struct ICMPType {
enum
{
enum {
EchoReply = 0,
EchoRequest = 8,
};

View file

@ -5,8 +5,7 @@
#include <AK/NetworkOrdered.h>
#include <AK/Types.h>
enum class IPv4Protocol : word
{
enum class IPv4Protocol : word {
ICMP = 1,
TCP = 6,
UDP = 17,

View file

@ -9,16 +9,14 @@
#include <Kernel/Lock.h>
#include <Kernel/UnixTypes.h>
enum class SocketRole : byte
{
enum class SocketRole : byte {
None,
Listener,
Accepted,
Connected,
Connecting
};
enum class ShouldBlock
{
enum class ShouldBlock {
No = 0,
Yes = 1
};

View file

@ -3,8 +3,7 @@
#include <Kernel/Net/IPv4.h>
struct TCPFlags {
enum : word
{
enum : word {
FIN = 0x01,
SYN = 0x02,
RST = 0x04,

View file

@ -7,8 +7,7 @@ public:
static Retained<TCPSocket> create(int protocol);
virtual ~TCPSocket() override;
enum class State
{
enum class State {
Disconnected,
Connecting,
Connected,