1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:27:34 +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:
Linus Groh 2020-12-30 22:44:54 +01:00 committed by Andreas Kling
parent 2568a93b5d
commit bbe787a0af
54 changed files with 130 additions and 230 deletions

View file

@ -32,8 +32,7 @@
namespace ELF::Core {
struct [[gnu::packed]] NotesEntryHeader
{
struct [[gnu::packed]] NotesEntryHeader {
enum Type : u8 {
Null = 0, // Terminates segment
ProcessInfo,
@ -44,28 +43,24 @@ struct [[gnu::packed]] NotesEntryHeader
Type type;
};
struct [[gnu::packed]] NotesEntry
{
struct [[gnu::packed]] NotesEntry {
NotesEntryHeader header;
char data[];
};
struct [[gnu::packed]] ProcessInfo
{
struct [[gnu::packed]] ProcessInfo {
NotesEntryHeader header;
int pid;
char executable_path[]; // Null terminated
};
struct [[gnu::packed]] ThreadInfo
{
struct [[gnu::packed]] ThreadInfo {
NotesEntryHeader header;
int tid;
PtraceRegisters regs;
};
struct [[gnu::packed]] MemoryRegionInfo
{
struct [[gnu::packed]] MemoryRegionInfo {
NotesEntryHeader header;
uint32_t region_start;
uint32_t region_end;
@ -83,8 +78,7 @@ struct [[gnu::packed]] MemoryRegionInfo
}
};
struct [[gnu::packed]] Metadata
{
struct [[gnu::packed]] Metadata {
NotesEntryHeader header;
char json_data[]; // Null terminated
};