Everywhere: Update to clang-format 20

This commit is contained in:
Alec Murphy 2025-04-19 07:31:54 -04:00
parent 402d802d2f
commit e7d8b456aa
9 changed files with 19 additions and 38 deletions

View file

@ -25,12 +25,9 @@ class TcpSocket {
U64 send_buffer_filled;
U64 send_buffer_kick; // We set this to 1 when we have data available to net,
// Net sets back to 0 when ready to receive
U0(*close)
();
U64(*receive)
(U64 buf, U64 length);
U0(*send)
(U64 buf, U64 length);
U0 (*close)();
U64 (*receive)(U64 buf, U64 length);
U0 (*send)(U64 buf, U64 length);
};
class TcpBind {

View file

@ -85,8 +85,7 @@ class @compositor
Bool in_drag;
Bool in_resize;
CTask* task;
U0(*Init)
();
U0 (*Init)();
Window* (*CreateWindow)(I64 x, I64 y, I64 width, I64 height,
I64 flags = WIN_FLAGS_DEFAULT, U8* title = NULL,
Context2D* icon = NULL);
@ -98,8 +97,7 @@ class @compositor
U0 (*RegisterForGlobalInputEvents)(Window* win);
U0 (*UnregisterForGlobalInputEvents)(Window* win);
U0 (*SetWallpaper)(Context2D* ctx, U32 mode = CPZ_WALLPAPER_AUTORESIZE, U32 background = Color(0, 0, 0));
U0(*Task)
();
U0 (*Task)();
};
@compositor Compositor;

View file

@ -6,16 +6,11 @@ class @display
I64 driver;
U64 fb;
U0(*Init)
(I64 width, I64 height, I64 bpp, I64 driver);
I64(*Width)
();
I64(*Height)
();
I64(*Bpp)
();
I64(*Driver)
();
U0 (*Init)(I64 width, I64 height, I64 bpp, I64 driver);
I64 (*Width)();
I64 (*Height)();
I64 (*Bpp)();
I64 (*Driver)();
U0 (*Update)();
};

View file

@ -242,10 +242,8 @@ U0 @vmsvga_display_update() { @vmsvga_reg_write(VMSVGA_REG_ENABLE, 1); }
class @vmsvga
{
U0(*Init)
(I64 w, I64 h, I64 bpp);
U64(*FrameBuffer)
();
U0 (*Init)(I64 w, I64 h, I64 bpp);
U64 (*FrameBuffer)();
};
@vmsvga VMSVGA;

View file

@ -76,8 +76,7 @@ class Elf {
I64 symtab_size;
};
U0(*_start)
();
U0 (*_start)();
U0 unimplemented_symbol()
{

View file

@ -35,8 +35,7 @@ class @clipboard
U0 (*Init)();
U0 (*Insert)(I64 type, U8* data);
I64 (*Length)();
U0(*Task)
();
U0 (*Task)();
};
@clipboard Clipboard;

View file

@ -12,10 +12,8 @@ U0 @function_patch(U32 from, U32 to)
class @function
{
U0(*InsertCall)
(U32 from, U32 to);
U0(*Patch)
(U32 from, U32 to);
U0 (*InsertCall)(U32 from, U32 to);
U0 (*Patch)(U32 from, U32 to);
};
@function Function;

View file

@ -1558,10 +1558,8 @@ class @graphics2d
Context2D* fb;
Context2D* (*FrameBufferContext2D)();
U0(*Init)
();
U0(*Flip)
(Context2D * ctx);
U0 (*Init)();
U0 (*Flip)(Context2D* ctx);
I64 qwords;
};

View file

@ -149,8 +149,7 @@ U0 @string_trim(U8* s, U8 ch = NULL, I64 mode = TRIM_BOTH)
class @string
{
U0(*Append)
(U8 * dst, U8 * fmt, ...);
U0 (*Append)(U8* dst, U8* fmt, ...);
Bool (*BeginsWith)(U8* fragment, U8* str);
Bool (*EndsWith)(U8* fragment, U8* str);
Bool (*IsNumber)(U8* s);