mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 16:37:47 +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
|
@ -570,8 +570,7 @@ KResult Plan9FS::do_read(u8* data, size_t size)
|
|||
|
||||
KResult Plan9FS::read_and_dispatch_one_message()
|
||||
{
|
||||
struct [[gnu::packed]] Header
|
||||
{
|
||||
struct [[gnu::packed]] Header {
|
||||
u32 size;
|
||||
u8 type;
|
||||
u16 tag;
|
||||
|
|
|
@ -78,8 +78,8 @@ typedef int __s16;
|
|||
# if (2 == 2)
|
||||
typedef short __s16;
|
||||
# else
|
||||
? == error
|
||||
: undefined 16 bit type
|
||||
? == error
|
||||
: undefined 16 bit type
|
||||
# endif /* SIZEOF_SHORT == 2 */
|
||||
# endif /* SIZEOF_INT == 2 */
|
||||
# endif /* __S16_TYPEDEF */
|
||||
|
@ -94,10 +94,10 @@ typedef unsigned int __u32;
|
|||
typedef unsigned long __u32;
|
||||
# else
|
||||
# if (2 == 4)
|
||||
typedef unsigned short __u32;
|
||||
typedef unsigned short __u32;
|
||||
# else
|
||||
? == error
|
||||
: undefined 32 bit type
|
||||
? == error
|
||||
: undefined 32 bit type
|
||||
# endif /* SIZEOF_SHORT == 4 */
|
||||
# endif /* SIZEOF_LONG == 4 */
|
||||
# endif /* SIZEOF_INT == 4 */
|
||||
|
@ -115,8 +115,8 @@ typedef long __s32;
|
|||
# if (2 == 4)
|
||||
typedef short __s32;
|
||||
# else
|
||||
? == error
|
||||
: undefined 32 bit type
|
||||
? == error
|
||||
: undefined 32 bit type
|
||||
# endif /* SIZEOF_SHORT == 4 */
|
||||
# endif /* SIZEOF_LONG == 4 */
|
||||
# endif /* SIZEOF_INT == 4 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue