diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2022-09-18 01:14:45 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-09-18 18:30:05 -0700 |
commit | c214d31c5e7aeb0bf82ecb4a9c1cd528738c8461 (patch) | |
tree | 49c9c7813f0704ed6cd8a6a50f0a70bf541fd1cf | |
parent | 30cca01e2442e9ac6dc38f5e8a1bb42d878d3266 (diff) | |
download | serenity-c214d31c5e7aeb0bf82ecb4a9c1cd528738c8461.zip |
Everywhere: Fix order of includes and #pragma once
-rw-r--r-- | Kernel/Arch/SafeMem.h | 4 | ||||
-rw-r--r-- | Userland/Demos/CatDog/CatDog.h | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibC/bits/stdio_file_implementation.h | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibC/byteswap.h | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibCodeComprehension/Types.h | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibCore/UmaskScope.h | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibGPU/Config.h | 4 | ||||
-rw-r--r-- | Userland/Services/LoginServer/LoginWindow.h | 4 | ||||
-rw-r--r-- | Userland/Services/SpiceAgent/ConnectionToClipboardServer.h | 4 | ||||
-rw-r--r-- | Userland/Services/SpiceAgent/SpiceAgent.h | 4 |
10 files changed, 20 insertions, 20 deletions
diff --git a/Kernel/Arch/SafeMem.h b/Kernel/Arch/SafeMem.h index df5be2d770..63efc585c3 100644 --- a/Kernel/Arch/SafeMem.h +++ b/Kernel/Arch/SafeMem.h @@ -4,12 +4,12 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include <AK/Atomic.h> #include <AK/Optional.h> #include <AK/Types.h> -#pragma once - namespace Kernel { struct RegisterState; diff --git a/Userland/Demos/CatDog/CatDog.h b/Userland/Demos/CatDog/CatDog.h index 6826ec1535..87ba315ec7 100644 --- a/Userland/Demos/CatDog/CatDog.h +++ b/Userland/Demos/CatDog/CatDog.h @@ -5,6 +5,8 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include <AK/NonnullRefPtr.h> #include <AK/RefPtr.h> #include <LibCore/ElapsedTimer.h> @@ -15,8 +17,6 @@ #include <LibGfx/Bitmap.h> #include <unistd.h> -#pragma once - class CatDog final : public GUI::Widget , GUI::MouseTracker { C_OBJECT(CatDog); diff --git a/Userland/Libraries/LibC/bits/stdio_file_implementation.h b/Userland/Libraries/LibC/bits/stdio_file_implementation.h index dc37199e23..555cdcbc97 100644 --- a/Userland/Libraries/LibC/bits/stdio_file_implementation.h +++ b/Userland/Libraries/LibC/bits/stdio_file_implementation.h @@ -4,6 +4,8 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include <AK/Array.h> #include <AK/IntrusiveList.h> #include <AK/Types.h> @@ -13,8 +15,6 @@ #include <pthread.h> #include <sys/types.h> -#pragma once - struct FILE { public: FILE(int fd, int mode) diff --git a/Userland/Libraries/LibC/byteswap.h b/Userland/Libraries/LibC/byteswap.h index a94fd6f94e..139da4a271 100644 --- a/Userland/Libraries/LibC/byteswap.h +++ b/Userland/Libraries/LibC/byteswap.h @@ -4,10 +4,10 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <sys/cdefs.h> - #pragma once +#include <sys/cdefs.h> + __BEGIN_DECLS #define bswap_16(x) (__builtin_bswap16(x)) diff --git a/Userland/Libraries/LibCodeComprehension/Types.h b/Userland/Libraries/LibCodeComprehension/Types.h index a1a25233cb..a8589ca35e 100644 --- a/Userland/Libraries/LibCodeComprehension/Types.h +++ b/Userland/Libraries/LibCodeComprehension/Types.h @@ -4,10 +4,10 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/String.h> - #pragma once +#include <AK/String.h> + namespace CodeComprehension { enum class Language { diff --git a/Userland/Libraries/LibCore/UmaskScope.h b/Userland/Libraries/LibCore/UmaskScope.h index f77c22956d..568aa39802 100644 --- a/Userland/Libraries/LibCore/UmaskScope.h +++ b/Userland/Libraries/LibCore/UmaskScope.h @@ -4,11 +4,11 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include <sys/stat.h> #include <sys/types.h> -#pragma once - namespace Core { class UmaskScope { diff --git a/Userland/Libraries/LibGPU/Config.h b/Userland/Libraries/LibGPU/Config.h index f3ab5e5c3f..30bebd41a1 100644 --- a/Userland/Libraries/LibGPU/Config.h +++ b/Userland/Libraries/LibGPU/Config.h @@ -4,10 +4,10 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/Types.h> - #pragma once +#include <AK/Types.h> + namespace GPU { // FIXME: These 3 types were originally introduced in LibSoftGPU and are currently needed by the device interface. diff --git a/Userland/Services/LoginServer/LoginWindow.h b/Userland/Services/LoginServer/LoginWindow.h index 6b978928d8..6b9791d5d9 100644 --- a/Userland/Services/LoginServer/LoginWindow.h +++ b/Userland/Services/LoginServer/LoginWindow.h @@ -4,14 +4,14 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include <LibGUI/Button.h> #include <LibGUI/ImageWidget.h> #include <LibGUI/Label.h> #include <LibGUI/TextBox.h> #include <LibGUI/Window.h> -#pragma once - class LoginWindow final : public GUI::Window { C_OBJECT(LoginWindow); diff --git a/Userland/Services/SpiceAgent/ConnectionToClipboardServer.h b/Userland/Services/SpiceAgent/ConnectionToClipboardServer.h index c76e0d5ae0..d553ca7195 100644 --- a/Userland/Services/SpiceAgent/ConnectionToClipboardServer.h +++ b/Userland/Services/SpiceAgent/ConnectionToClipboardServer.h @@ -4,14 +4,14 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include <AK/Function.h> #include <Clipboard/ClipboardClientEndpoint.h> #include <Clipboard/ClipboardServerEndpoint.h> #include <LibGfx/Bitmap.h> #include <LibIPC/ConnectionToServer.h> -#pragma once - class ConnectionToClipboardServer final : public IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint> , public ClipboardClientEndpoint { diff --git a/Userland/Services/SpiceAgent/SpiceAgent.h b/Userland/Services/SpiceAgent/SpiceAgent.h index 9ef81d7ed1..09eddda92b 100644 --- a/Userland/Services/SpiceAgent/SpiceAgent.h +++ b/Userland/Services/SpiceAgent/SpiceAgent.h @@ -4,13 +4,13 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#pragma once + #include "ConnectionToClipboardServer.h" #include <AK/ByteBuffer.h> #include <AK/Vector.h> #include <LibCore/Notifier.h> -#pragma once - class SpiceAgent { public: SpiceAgent(int fd, ConnectionToClipboardServer&); |