diff options
author | Linus Groh <mail@linusgroh.de> | 2020-12-30 22:44:54 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-31 21:51:00 +0100 |
commit | bbe787a0afd51307cdac2c023895c19df31519ca (patch) | |
tree | 44dc80cf50b22b461c27c1e9d99fa2c9ff00e22e /Services | |
parent | 2568a93b5dd29d2b06d613a4ece502ee696f189a (diff) | |
download | serenity-bbe787a0afd51307cdac2c023895c19df31519ca.zip |
Everywhere: Re-format with clang-format-11
Compared to version 10 this fixes a bunch of formatting issues, mostly
around structs/classes with attributes like [[gnu::packed]], and
incorrect insertion of spaces in parameter types ("T &"/"T &&").
I also removed a bunch of // clang-format off/on and FIXME comments that
are no longer relevant - on the other hand it tried to destroy a couple of
neatly formatted comments, so I had to add some as well.
Diffstat (limited to 'Services')
-rw-r--r-- | Services/DHCPClient/DHCPv4.h | 3 | ||||
-rw-r--r-- | Services/LookupServer/DNSPacket.h | 3 | ||||
-rw-r--r-- | Services/LookupServer/DNSResponse.cpp | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/Services/DHCPClient/DHCPv4.h b/Services/DHCPClient/DHCPv4.h index 1a1dfd8aa1..68bfd36171 100644 --- a/Services/DHCPClient/DHCPv4.h +++ b/Services/DHCPClient/DHCPv4.h @@ -194,8 +194,7 @@ struct ParsedDHCPv4Options { constexpr auto DHCPV4_OPTION_FIELD_MAX_LENGTH = 312; -class [[gnu::packed]] DHCPv4Packet -{ +class [[gnu::packed]] DHCPv4Packet { public: u8 op() const { return m_op; } void set_op(DHCPv4Op op) { m_op = (u8)op; } diff --git a/Services/LookupServer/DNSPacket.h b/Services/LookupServer/DNSPacket.h index fce73037c8..1cddc372c7 100644 --- a/Services/LookupServer/DNSPacket.h +++ b/Services/LookupServer/DNSPacket.h @@ -29,8 +29,7 @@ #include <AK/Endian.h> #include <AK/Types.h> -class [[gnu::packed]] DNSPacket -{ +class [[gnu::packed]] DNSPacket { public: DNSPacket() : m_recursion_desired(false) diff --git a/Services/LookupServer/DNSResponse.cpp b/Services/LookupServer/DNSResponse.cpp index 1cb617d222..54f4a985e8 100644 --- a/Services/LookupServer/DNSResponse.cpp +++ b/Services/LookupServer/DNSResponse.cpp @@ -32,8 +32,7 @@ static String parse_dns_name(const u8* data, size_t& offset, size_t max_offset, size_t recursion_level = 0); -class [[gnu::packed]] DNSRecordWithoutName -{ +class [[gnu::packed]] DNSRecordWithoutName { public: DNSRecordWithoutName() { } |