1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -29,7 +29,7 @@ struct [[gnu::packed]] InodeWatcherEvent {
Type type { Type::Invalid };
size_t name_length { 0 };
// This is a VLA which is written during the read() from the descriptor.
const char name[];
char const name[];
};
AK_ENUM_BITWISE_OPERATORS(InodeWatcherEvent::Type);

View file

@ -125,7 +125,7 @@ enum KeyCode : u8 {
Key_Shift
= Key_LeftShift,
};
const int key_code_count = Key_Menu;
int const key_code_count = Key_Menu;
enum KeyModifier {
Mod_None = 0x00,
@ -155,7 +155,7 @@ struct KeyEvent {
bool is_press() const { return flags & Is_Press; }
};
inline const char* key_code_to_string(KeyCode key)
inline char const* key_code_to_string(KeyCode key)
{
switch (key) {
#define __ENUMERATE_KEY_CODE(name, ui_name) \

View file

@ -218,7 +218,7 @@ constexpr StringView to_string(Function function)
#ifdef __serenity__
struct StringArgument {
const char* characters;
char const* characters;
size_t length { 0 };
};
@ -262,7 +262,7 @@ struct SC_poll_params {
struct pollfd* fds;
unsigned nfds;
const struct timespec* timeout;
const u32* sigmask;
u32 const* sigmask;
};
struct SC_clock_nanosleep_params {
@ -288,7 +288,7 @@ struct SC_getsockopt_params {
};
struct SC_setsockopt_params {
const void* value;
void const* value;
int sockfd;
int level;
int option;
@ -319,7 +319,7 @@ struct SC_futex_params {
int futex_op;
u32 val;
union {
const timespec* timeout;
timespec const* timeout;
uintptr_t val2;
};
u32* userspace_address2;
@ -327,11 +327,11 @@ struct SC_futex_params {
};
struct SC_setkeymap_params {
const u32* map;
const u32* shift_map;
const u32* alt_map;
const u32* altgr_map;
const u32* shift_altgr_map;
u32 const* map;
u32 const* shift_map;
u32 const* alt_map;
u32 const* altgr_map;
u32 const* shift_altgr_map;
StringArgument map_name;
};

View file

@ -23,7 +23,7 @@ struct VirGL3DResourceSpec {
};
struct VirGLCommandBuffer {
const u32* data;
u32 const* data;
u32 num_elems;
};