mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:38:12 +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
|
@ -64,8 +64,7 @@ struct Scanline {
|
|||
ReadonlyBytes data {};
|
||||
};
|
||||
|
||||
struct [[gnu::packed]] PaletteEntry
|
||||
{
|
||||
struct [[gnu::packed]] PaletteEntry {
|
||||
u8 r;
|
||||
u8 g;
|
||||
u8 b;
|
||||
|
@ -73,23 +72,20 @@ struct [[gnu::packed]] PaletteEntry
|
|||
};
|
||||
|
||||
template<typename T>
|
||||
struct [[gnu::packed]] Tuple
|
||||
{
|
||||
struct [[gnu::packed]] Tuple {
|
||||
T gray;
|
||||
T a;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
struct [[gnu::packed]] Triplet
|
||||
{
|
||||
struct [[gnu::packed]] Triplet {
|
||||
T r;
|
||||
T g;
|
||||
T b;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
struct [[gnu::packed]] Quad
|
||||
{
|
||||
struct [[gnu::packed]] Quad {
|
||||
T r;
|
||||
T g;
|
||||
T b;
|
||||
|
@ -227,8 +223,7 @@ ALWAYS_INLINE static u8 paeth_predictor(int a, int b, int c)
|
|||
return c;
|
||||
}
|
||||
|
||||
union [[gnu::packed]] Pixel
|
||||
{
|
||||
union [[gnu::packed]] Pixel {
|
||||
RGBA32 rgba { 0 };
|
||||
u8 v[4];
|
||||
struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue