mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
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.
This commit is contained in:
parent
2568a93b5d
commit
bbe787a0af
54 changed files with 130 additions and 230 deletions
|
@ -36,8 +36,7 @@ struct ICMPType {
|
|||
};
|
||||
};
|
||||
|
||||
class [[gnu::packed]] ICMPHeader
|
||||
{
|
||||
class [[gnu::packed]] ICMPHeader {
|
||||
public:
|
||||
ICMPHeader() { }
|
||||
~ICMPHeader() { }
|
||||
|
@ -63,8 +62,7 @@ private:
|
|||
|
||||
static_assert(sizeof(ICMPHeader) == 4);
|
||||
|
||||
struct [[gnu::packed]] ICMPEchoPacket
|
||||
{
|
||||
struct [[gnu::packed]] ICMPEchoPacket {
|
||||
ICMPHeader header;
|
||||
NetworkOrdered<u16> identifier;
|
||||
NetworkOrdered<u16> sequence_number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue