From cbfa9cbb65c0974ade5c52b182e8c57975d4d693 Mon Sep 17 00:00:00 2001 From: vittorioromeo Date: Mon, 24 Apr 2023 14:13:52 +0200 Subject: [PATCH] Reorder includes hierarchically --- .clang-format | 22 ++++++++++++++----- examples/X11/X11.cpp | 3 ++- examples/android/app/src/main/jni/main.cpp | 8 +++++-- examples/cocoa/NSString+stdstring.mm | 4 ++-- examples/island/Island.cpp | 7 +++--- examples/opengl/OpenGL.cpp | 3 ++- examples/shader/Effect.hpp | 3 ++- examples/shader/Shader.cpp | 4 ++-- examples/sound_capture/SoundCapture.cpp | 3 ++- examples/tennis/Tennis.cpp | 3 ++- examples/voip/Client.cpp | 1 + examples/voip/Server.cpp | 4 +++- examples/vulkan/Vulkan.cpp | 6 +++-- examples/win32/Win32.cpp | 3 ++- examples/window/Window.cpp | 3 ++- include/SFML/Audio.hpp | 1 + include/SFML/Audio/InputSoundFile.hpp | 3 ++- include/SFML/Audio/SoundBuffer.hpp | 1 + include/SFML/Audio/SoundRecorder.hpp | 1 + include/SFML/Audio/SoundSource.hpp | 1 + include/SFML/Audio/SoundStream.hpp | 4 +++- include/SFML/Graphics.hpp | 1 + include/SFML/Graphics/Glsl.hpp | 1 + include/SFML/Graphics/RenderTexture.hpp | 1 + include/SFML/Graphics/RenderWindow.hpp | 1 + include/SFML/Graphics/Shader.hpp | 4 +++- include/SFML/Graphics/Shape.hpp | 1 + include/SFML/Graphics/Text.hpp | 1 + include/SFML/Graphics/Texture.hpp | 1 + include/SFML/Graphics/Transform.hpp | 1 + include/SFML/Graphics/Transformable.hpp | 1 + include/SFML/Graphics/Vertex.hpp | 1 + include/SFML/Graphics/VertexBuffer.hpp | 1 + include/SFML/Graphics/View.hpp | 1 + include/SFML/Network.hpp | 1 + include/SFML/Network/Ftp.hpp | 1 + include/SFML/Network/Http.hpp | 1 + include/SFML/Network/Packet.hpp | 3 ++- include/SFML/Network/TcpSocket.hpp | 1 + include/SFML/System/FileInputStream.hpp | 3 ++- include/SFML/System/Time.hpp | 1 + include/SFML/System/Utf.hpp | 3 ++- include/SFML/Window.hpp | 3 ++- include/SFML/Window/Context.hpp | 6 +++-- include/SFML/Window/Cursor.hpp | 3 ++- include/SFML/Window/Vulkan.hpp | 3 ++- include/SFML/Window/Window.hpp | 5 +++-- include/SFML/Window/WindowBase.hpp | 3 ++- src/SFML/Audio/ALCheck.cpp | 1 + src/SFML/Audio/AudioDevice.cpp | 1 + src/SFML/Audio/InputSoundFile.cpp | 1 + src/SFML/Audio/Music.cpp | 1 + src/SFML/Audio/SoundBuffer.cpp | 1 + src/SFML/Audio/SoundBufferRecorder.cpp | 1 + src/SFML/Audio/SoundFileFactory.cpp | 1 + src/SFML/Audio/SoundFileReaderFlac.cpp | 4 +++- src/SFML/Audio/SoundFileReaderMp3.cpp | 2 ++ src/SFML/Audio/SoundFileReaderOgg.cpp | 4 +++- src/SFML/Audio/SoundFileReaderWav.cpp | 4 +++- src/SFML/Audio/SoundFileWriterFlac.cpp | 4 +++- src/SFML/Audio/SoundFileWriterOgg.cpp | 6 +++-- src/SFML/Audio/SoundFileWriterWav.cpp | 4 +++- src/SFML/Audio/SoundRecorder.cpp | 4 +++- src/SFML/Audio/SoundStream.cpp | 4 +++- src/SFML/Graphics/Font.cpp | 5 +++-- src/SFML/Graphics/GLCheck.cpp | 1 + src/SFML/Graphics/GLExtensions.cpp | 4 +++- src/SFML/Graphics/Image.cpp | 4 +++- src/SFML/Graphics/ImageLoader.cpp | 1 + src/SFML/Graphics/RenderTarget.cpp | 9 +++++--- src/SFML/Graphics/RenderTexture.cpp | 1 + .../Graphics/RenderTextureImplDefault.cpp | 1 + .../Graphics/RenderTextureImplDefault.hpp | 1 + src/SFML/Graphics/RenderTextureImplFBO.cpp | 4 +++- src/SFML/Graphics/RenderTextureImplFBO.hpp | 1 + src/SFML/Graphics/RenderWindow.cpp | 1 + src/SFML/Graphics/Shader.cpp | 4 +++- src/SFML/Graphics/Text.cpp | 3 ++- src/SFML/Graphics/Texture.cpp | 9 +++++--- src/SFML/Graphics/Transform.cpp | 1 + src/SFML/Graphics/VertexBuffer.cpp | 6 +++-- src/SFML/Main/MainAndroid.cpp | 5 +++-- src/SFML/Network/Ftp.cpp | 6 +++-- src/SFML/Network/Http.cpp | 1 + src/SFML/Network/IpAddress.cpp | 3 ++- src/SFML/Network/Packet.cpp | 1 + src/SFML/Network/Socket.cpp | 1 + src/SFML/Network/SocketSelector.cpp | 1 + src/SFML/Network/TcpListener.cpp | 1 + src/SFML/Network/TcpSocket.cpp | 4 +++- src/SFML/Network/UdpSocket.cpp | 4 +++- src/SFML/Network/Unix/SocketImpl.cpp | 6 +++-- src/SFML/Network/Unix/SocketImpl.hpp | 3 ++- src/SFML/Network/Win32/SocketImpl.hpp | 4 +++- src/SFML/PCH.hpp | 11 +++++----- src/SFML/System/Err.cpp | 3 ++- src/SFML/System/FileInputStream.cpp | 3 ++- src/SFML/System/String.cpp | 3 ++- src/SFML/System/Utils.hpp | 3 ++- src/SFML/System/Vector2.cpp | 3 ++- src/SFML/System/Vector3.cpp | 3 ++- src/SFML/Window/Android/ClipboardImpl.cpp | 3 ++- src/SFML/Window/Android/CursorImpl.hpp | 3 ++- src/SFML/Window/Android/InputImpl.cpp | 3 ++- src/SFML/Window/Android/SensorImpl.cpp | 3 ++- src/SFML/Window/Android/VideoModeImpl.cpp | 3 ++- src/SFML/Window/Android/WindowImplAndroid.cpp | 3 ++- src/SFML/Window/Android/WindowImplAndroid.hpp | 3 ++- src/SFML/Window/Clipboard.cpp | 3 ++- src/SFML/Window/Context.cpp | 3 ++- src/SFML/Window/Cursor.cpp | 3 ++- src/SFML/Window/DRM/ClipboardImpl.cpp | 3 ++- src/SFML/Window/DRM/CursorImpl.hpp | 3 ++- src/SFML/Window/DRM/DRMContext.cpp | 12 +++++----- src/SFML/Window/DRM/InputImplUDev.cpp | 12 +++++----- src/SFML/Window/DRM/VideoModeImpl.cpp | 3 ++- src/SFML/Window/DRM/WindowImplDRM.cpp | 3 ++- src/SFML/Window/EGLCheck.cpp | 3 ++- src/SFML/Window/EglContext.cpp | 5 +++-- src/SFML/Window/FreeBSD/JoystickImpl.cpp | 3 ++- src/SFML/Window/GlContext.cpp | 12 +++++----- src/SFML/Window/GlContext.hpp | 3 ++- src/SFML/Window/Keyboard.cpp | 3 ++- src/SFML/Window/NetBSD/JoystickImpl.cpp | 3 ++- src/SFML/Window/OSX/ClipboardImpl.mm | 3 ++- src/SFML/Window/OSX/CursorImpl.hpp | 3 ++- src/SFML/Window/OSX/HIDInputManager.hpp | 3 ++- src/SFML/Window/OSX/HIDInputManager.mm | 3 ++- src/SFML/Window/OSX/InputImpl.mm | 3 ++- src/SFML/Window/OSX/JoystickImpl.cpp | 3 ++- src/SFML/Window/OSX/JoystickImpl.hpp | 3 ++- src/SFML/Window/OSX/NSImage+raw.h | 1 + src/SFML/Window/OSX/SFContext.mm | 3 ++- src/SFML/Window/OSX/SFOpenGLView.mm | 3 ++- src/SFML/Window/OSX/SFViewController.mm | 3 ++- src/SFML/Window/OSX/SFWindowController.mm | 3 ++- src/SFML/Window/OSX/VideoModeImpl.cpp | 3 ++- src/SFML/Window/OSX/WindowImplCocoa.mm | 5 +++-- .../Window/OSX/WindowImplDelegateProtocol.h | 1 + src/SFML/Window/OSX/cg_sf_conversion.mm | 3 ++- src/SFML/Window/OSX/cpp_objc_conversion.mm | 3 ++- src/SFML/Window/SensorManager.cpp | 3 ++- src/SFML/Window/Unix/ClipboardImpl.cpp | 5 +++-- src/SFML/Window/Unix/ClipboardImpl.hpp | 3 ++- src/SFML/Window/Unix/CursorImpl.cpp | 3 ++- src/SFML/Window/Unix/CursorImpl.hpp | 3 ++- src/SFML/Window/Unix/Display.cpp | 8 ++++--- src/SFML/Window/Unix/GlxContext.cpp | 3 ++- src/SFML/Window/Unix/InputImpl.cpp | 3 ++- src/SFML/Window/Unix/JoystickImpl.cpp | 8 ++++--- src/SFML/Window/Unix/KeyboardImpl.cpp | 8 ++++--- src/SFML/Window/Unix/VideoModeImpl.cpp | 3 ++- src/SFML/Window/Unix/WindowImplX11.cpp | 16 ++++++++------ src/SFML/Window/Win32/ClipboardImpl.cpp | 3 ++- src/SFML/Window/Win32/CursorImpl.cpp | 8 ++++--- src/SFML/Window/Win32/CursorImpl.hpp | 3 ++- src/SFML/Window/Win32/InputImpl.cpp | 5 +++-- src/SFML/Window/Win32/JoystickImpl.cpp | 8 ++++--- src/SFML/Window/Win32/JoystickImpl.hpp | 3 ++- src/SFML/Window/Win32/VideoModeImpl.cpp | 3 ++- src/SFML/Window/Win32/VulkanImplWin32.cpp | 3 ++- src/SFML/Window/Win32/WglContext.cpp | 3 ++- src/SFML/Window/Win32/WindowImplWin32.cpp | 7 +++--- src/SFML/Window/Win32/WindowImplWin32.hpp | 3 ++- src/SFML/Window/Window.cpp | 5 +++-- src/SFML/Window/WindowBase.cpp | 3 ++- src/SFML/Window/WindowImpl.cpp | 8 ++++--- src/SFML/Window/iOS/ClipboardImpl.mm | 3 ++- src/SFML/Window/iOS/CursorImpl.hpp | 3 ++- src/SFML/Window/iOS/EaglContext.hpp | 5 +++-- src/SFML/Window/iOS/EaglContext.mm | 7 +++--- src/SFML/Window/iOS/InputImpl.mm | 3 ++- src/SFML/Window/iOS/SFAppDelegate.hpp | 3 ++- src/SFML/Window/iOS/SFView.mm | 4 +++- src/SFML/Window/iOS/SensorImpl.mm | 3 ++- src/SFML/Window/iOS/WindowImplUIKit.mm | 3 ++- test/Graphics/Rect.test.cpp | 1 + test/Graphics/RenderWindow.test.cpp | 4 +++- test/Graphics/Transform.test.cpp | 4 +++- test/System/FileInputStream.test.cpp | 3 ++- test/System/String.test.cpp | 3 ++- test/System/Vector2.test.cpp | 3 ++- test/Window/Window.test.cpp | 3 ++- test/Window/WindowBase.test.cpp | 3 ++- test/install/Install.cpp | 4 +++- .../SFML/SFML App.xctemplate/main.cpp | 3 ++- .../SFML/SFML CLT.xctemplate/main.cpp | 3 ++- 187 files changed, 448 insertions(+), 207 deletions(-) diff --git a/.clang-format b/.clang-format index 7e5a36bd..3c083a12 100644 --- a/.clang-format +++ b/.clang-format @@ -96,15 +96,27 @@ MaxEmptyLinesToKeep: 2 IncludeBlocks: Regroup IncludeCategories: - Priority: 1 - Regex: '^$' + Regex: '^\"(.+)\"$' - Priority: 2 - Regex: '^$' + Regex: '^$' - Priority: 3 - Regex: '^$' - Priority: 4 - Regex: '^<(glad|gl|X11|jni|android|stb_|GLES2|vorbis|doctest)' + Regex: '^$' + Regex: '^$' + - Priority: 11 + Regex: '^$' SortIncludes: true SortUsingDeclarations: true diff --git a/examples/X11/X11.cpp b/examples/X11/X11.cpp index babb9fd6..642ca284 100644 --- a/examples/X11/X11.cpp +++ b/examples/X11/X11.cpp @@ -9,9 +9,10 @@ #include #include +#include + #include #include -#include //////////////////////////////////////////////////////////// /// Initialize OpenGL states into the specified view diff --git a/examples/android/app/src/main/jni/main.cpp b/examples/android/app/src/main/jni/main.cpp index e0eff329..b9068241 100644 --- a/examples/android/app/src/main/jni/main.cpp +++ b/examples/android/app/src/main/jni/main.cpp @@ -1,9 +1,13 @@ -#include #include + +#include + #include -#include + #include +#include + // Do we want to showcase direct JNI/NDK interaction? // Undefine this to get real cross-platform code. // Uncomment this to try JNI access; this seems to be broken in latest NDKs diff --git a/examples/cocoa/NSString+stdstring.mm b/examples/cocoa/NSString+stdstring.mm index 15724ea0..92da0777 100644 --- a/examples/cocoa/NSString+stdstring.mm +++ b/examples/cocoa/NSString+stdstring.mm @@ -23,10 +23,10 @@ // //////////////////////////////////////////////////////////// -#include - #import "NSString+stdstring.h" +#include + @implementation NSString (NSString_stdstring) + (id)stringWithstdstring:(const std::string&)string diff --git a/examples/island/Island.cpp b/examples/island/Island.cpp index 863f076c..368c4d6e 100644 --- a/examples/island/Island.cpp +++ b/examples/island/Island.cpp @@ -9,9 +9,6 @@ #include #include -#include -#include -#include #include #include #include @@ -19,6 +16,10 @@ #include #include +#include +#include +#include + namespace { diff --git a/examples/opengl/OpenGL.cpp b/examples/opengl/OpenGL.cpp index 19ac6093..340749f1 100644 --- a/examples/opengl/OpenGL.cpp +++ b/examples/opengl/OpenGL.cpp @@ -5,9 +5,10 @@ #include #include -#include #include +#include + #define GLAD_GL_IMPLEMENTATION #include diff --git a/examples/shader/Effect.hpp b/examples/shader/Effect.hpp index 55487137..4f9949d3 100644 --- a/examples/shader/Effect.hpp +++ b/examples/shader/Effect.hpp @@ -5,10 +5,11 @@ //////////////////////////////////////////////////////////// #include -#include #include #include +#include + //////////////////////////////////////////////////////////// // Base class for effects diff --git a/examples/shader/Shader.cpp b/examples/shader/Shader.cpp index 58507ed0..8342d847 100644 --- a/examples/shader/Shader.cpp +++ b/examples/shader/Shader.cpp @@ -2,11 +2,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// +#include "Effect.hpp" + #include #include -#include "Effect.hpp" - namespace { diff --git a/examples/sound_capture/SoundCapture.cpp b/examples/sound_capture/SoundCapture.cpp index 602be881..492d54cf 100644 --- a/examples/sound_capture/SoundCapture.cpp +++ b/examples/sound_capture/SoundCapture.cpp @@ -4,9 +4,10 @@ //////////////////////////////////////////////////////////// #include -#include #include +#include + //////////////////////////////////////////////////////////// /// Entry point of application diff --git a/examples/tennis/Tennis.cpp b/examples/tennis/Tennis.cpp index aab250d9..42b0ac12 100644 --- a/examples/tennis/Tennis.cpp +++ b/examples/tennis/Tennis.cpp @@ -2,9 +2,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + #include #ifdef SFML_SYSTEM_IOS diff --git a/examples/voip/Client.cpp b/examples/voip/Client.cpp index 14db815d..39d0fda5 100644 --- a/examples/voip/Client.cpp +++ b/examples/voip/Client.cpp @@ -3,6 +3,7 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include diff --git a/examples/voip/Server.cpp b/examples/voip/Server.cpp index b0d9c60e..6893a402 100644 --- a/examples/voip/Server.cpp +++ b/examples/voip/Server.cpp @@ -3,13 +3,15 @@ // Headers //////////////////////////////////////////////////////////// #include + #include -#include #include #include #include +#include + const std::uint8_t serverAudioData = 1; const std::uint8_t serverEndOfStream = 2; diff --git a/examples/vulkan/Vulkan.cpp b/examples/vulkan/Vulkan.cpp index a1b7f486..c0e136ab 100644 --- a/examples/vulkan/Vulkan.cpp +++ b/examples/vulkan/Vulkan.cpp @@ -7,16 +7,18 @@ // Include graphics because we use sf::Image for loading images #include + #include #include #include -#include -#include #include #include #include +#include +#include + //////////////////////////////////////////////////////////// // Helper functions diff --git a/examples/win32/Win32.cpp b/examples/win32/Win32.cpp index d2169e1b..dcd96ae3 100644 --- a/examples/win32/Win32.cpp +++ b/examples/win32/Win32.cpp @@ -6,9 +6,10 @@ #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif -#include #include +#include + HWND button; diff --git a/examples/window/Window.cpp b/examples/window/Window.cpp index 85251c30..98bd3a7b 100644 --- a/examples/window/Window.cpp +++ b/examples/window/Window.cpp @@ -13,9 +13,10 @@ #endif #include -#include #include +#include + //////////////////////////////////////////////////////////// /// Entry point of application /// diff --git a/include/SFML/Audio.hpp b/include/SFML/Audio.hpp index fe212881..bd3f8861 100644 --- a/include/SFML/Audio.hpp +++ b/include/SFML/Audio.hpp @@ -41,6 +41,7 @@ #include #include #include + #include diff --git a/include/SFML/Audio/InputSoundFile.hpp b/include/SFML/Audio/InputSoundFile.hpp index 20b946ee..9138fbc4 100644 --- a/include/SFML/Audio/InputSoundFile.hpp +++ b/include/SFML/Audio/InputSoundFile.hpp @@ -31,10 +31,11 @@ #include -#include #include #include +#include + namespace sf { diff --git a/include/SFML/Audio/SoundBuffer.hpp b/include/SFML/Audio/SoundBuffer.hpp index c45abcea..db0e77a9 100644 --- a/include/SFML/Audio/SoundBuffer.hpp +++ b/include/SFML/Audio/SoundBuffer.hpp @@ -30,6 +30,7 @@ #include #include + #include #include diff --git a/include/SFML/Audio/SoundRecorder.hpp b/include/SFML/Audio/SoundRecorder.hpp index 2215d9ca..9a321a0d 100644 --- a/include/SFML/Audio/SoundRecorder.hpp +++ b/include/SFML/Audio/SoundRecorder.hpp @@ -30,6 +30,7 @@ #include #include + #include #include diff --git a/include/SFML/Audio/SoundSource.hpp b/include/SFML/Audio/SoundSource.hpp index 72f16daf..f75feb64 100644 --- a/include/SFML/Audio/SoundSource.hpp +++ b/include/SFML/Audio/SoundSource.hpp @@ -30,6 +30,7 @@ #include #include + #include diff --git a/include/SFML/Audio/SoundStream.hpp b/include/SFML/Audio/SoundStream.hpp index 7f8b587d..c6bd19fa 100644 --- a/include/SFML/Audio/SoundStream.hpp +++ b/include/SFML/Audio/SoundStream.hpp @@ -30,12 +30,14 @@ #include #include + #include -#include #include #include +#include + namespace sf { diff --git a/include/SFML/Graphics.hpp b/include/SFML/Graphics.hpp index 048f01e4..8fe31bb2 100644 --- a/include/SFML/Graphics.hpp +++ b/include/SFML/Graphics.hpp @@ -54,6 +54,7 @@ #include #include #include + #include diff --git a/include/SFML/Graphics/Glsl.hpp b/include/SFML/Graphics/Glsl.hpp index 1d06f636..2df9fa25 100644 --- a/include/SFML/Graphics/Glsl.hpp +++ b/include/SFML/Graphics/Glsl.hpp @@ -29,6 +29,7 @@ //////////////////////////////////////////////////////////// #include #include + #include #include diff --git a/include/SFML/Graphics/RenderTexture.hpp b/include/SFML/Graphics/RenderTexture.hpp index 89f38170..f8073427 100644 --- a/include/SFML/Graphics/RenderTexture.hpp +++ b/include/SFML/Graphics/RenderTexture.hpp @@ -31,6 +31,7 @@ #include #include + #include #include diff --git a/include/SFML/Graphics/RenderWindow.hpp b/include/SFML/Graphics/RenderWindow.hpp index c70ee3a9..794143cd 100644 --- a/include/SFML/Graphics/RenderWindow.hpp +++ b/include/SFML/Graphics/RenderWindow.hpp @@ -30,6 +30,7 @@ #include #include + #include diff --git a/include/SFML/Graphics/Shader.hpp b/include/SFML/Graphics/Shader.hpp index 09d7f380..6d2d8842 100644 --- a/include/SFML/Graphics/Shader.hpp +++ b/include/SFML/Graphics/Shader.hpp @@ -30,9 +30,11 @@ #include #include + +#include + #include #include -#include #include #include diff --git a/include/SFML/Graphics/Shape.hpp b/include/SFML/Graphics/Shape.hpp index 23e3375b..6901309d 100644 --- a/include/SFML/Graphics/Shape.hpp +++ b/include/SFML/Graphics/Shape.hpp @@ -32,6 +32,7 @@ #include #include #include + #include diff --git a/include/SFML/Graphics/Text.hpp b/include/SFML/Graphics/Text.hpp index eed583c9..e70bdec4 100644 --- a/include/SFML/Graphics/Text.hpp +++ b/include/SFML/Graphics/Text.hpp @@ -33,6 +33,7 @@ #include #include #include + #include #include diff --git a/include/SFML/Graphics/Texture.hpp b/include/SFML/Graphics/Texture.hpp index f49763bb..f1f251c7 100644 --- a/include/SFML/Graphics/Texture.hpp +++ b/include/SFML/Graphics/Texture.hpp @@ -30,6 +30,7 @@ #include #include + #include #include diff --git a/include/SFML/Graphics/Transform.hpp b/include/SFML/Graphics/Transform.hpp index b510b87f..14bc2579 100644 --- a/include/SFML/Graphics/Transform.hpp +++ b/include/SFML/Graphics/Transform.hpp @@ -30,6 +30,7 @@ #include #include + #include diff --git a/include/SFML/Graphics/Transformable.hpp b/include/SFML/Graphics/Transformable.hpp index bde2e6d3..5933746d 100644 --- a/include/SFML/Graphics/Transformable.hpp +++ b/include/SFML/Graphics/Transformable.hpp @@ -30,6 +30,7 @@ #include #include + #include diff --git a/include/SFML/Graphics/Vertex.hpp b/include/SFML/Graphics/Vertex.hpp index 657129df..bed30345 100644 --- a/include/SFML/Graphics/Vertex.hpp +++ b/include/SFML/Graphics/Vertex.hpp @@ -28,6 +28,7 @@ // Headers //////////////////////////////////////////////////////////// #include + #include diff --git a/include/SFML/Graphics/VertexBuffer.hpp b/include/SFML/Graphics/VertexBuffer.hpp index a76a4098..c9a060e8 100644 --- a/include/SFML/Graphics/VertexBuffer.hpp +++ b/include/SFML/Graphics/VertexBuffer.hpp @@ -31,6 +31,7 @@ #include #include + #include #include diff --git a/include/SFML/Graphics/View.hpp b/include/SFML/Graphics/View.hpp index 1e7b2fb5..4b226f0c 100644 --- a/include/SFML/Graphics/View.hpp +++ b/include/SFML/Graphics/View.hpp @@ -31,6 +31,7 @@ #include #include + #include #include diff --git a/include/SFML/Network.hpp b/include/SFML/Network.hpp index 5891626b..0e770425 100644 --- a/include/SFML/Network.hpp +++ b/include/SFML/Network.hpp @@ -38,6 +38,7 @@ #include #include #include + #include diff --git a/include/SFML/Network/Ftp.hpp b/include/SFML/Network/Ftp.hpp index 4fe77770..75871b8a 100644 --- a/include/SFML/Network/Ftp.hpp +++ b/include/SFML/Network/Ftp.hpp @@ -30,6 +30,7 @@ #include #include + #include #include diff --git a/include/SFML/Network/Http.hpp b/include/SFML/Network/Http.hpp index 0fa5781e..0495d26c 100644 --- a/include/SFML/Network/Http.hpp +++ b/include/SFML/Network/Http.hpp @@ -31,6 +31,7 @@ #include #include + #include #include diff --git a/include/SFML/Network/Packet.hpp b/include/SFML/Network/Packet.hpp index e37d0f62..e7e3a3ac 100644 --- a/include/SFML/Network/Packet.hpp +++ b/include/SFML/Network/Packet.hpp @@ -29,10 +29,11 @@ //////////////////////////////////////////////////////////// #include -#include #include #include +#include + namespace sf { diff --git a/include/SFML/Network/TcpSocket.hpp b/include/SFML/Network/TcpSocket.hpp index 907a7256..afccfbd9 100644 --- a/include/SFML/Network/TcpSocket.hpp +++ b/include/SFML/Network/TcpSocket.hpp @@ -30,6 +30,7 @@ #include #include + #include #include diff --git a/include/SFML/System/FileInputStream.hpp b/include/SFML/System/FileInputStream.hpp index b85177ef..01320aee 100644 --- a/include/SFML/System/FileInputStream.hpp +++ b/include/SFML/System/FileInputStream.hpp @@ -33,10 +33,11 @@ #include -#include #include #include +#include + #ifdef SFML_SYSTEM_ANDROID namespace sf::priv { diff --git a/include/SFML/System/Time.hpp b/include/SFML/System/Time.hpp index bce33f4a..c7d8a402 100644 --- a/include/SFML/System/Time.hpp +++ b/include/SFML/System/Time.hpp @@ -30,6 +30,7 @@ #include #include + #include diff --git a/include/SFML/System/Utf.hpp b/include/SFML/System/Utf.hpp index 086d9e62..b56ea7e9 100644 --- a/include/SFML/System/Utf.hpp +++ b/include/SFML/System/Utf.hpp @@ -29,9 +29,10 @@ //////////////////////////////////////////////////////////// #include -#include #include +#include + namespace sf { diff --git a/include/SFML/Window.hpp b/include/SFML/Window.hpp index f3429d33..77d15f8b 100644 --- a/include/SFML/Window.hpp +++ b/include/SFML/Window.hpp @@ -28,7 +28,6 @@ // Headers //////////////////////////////////////////////////////////// -#include #include #include #include @@ -44,6 +43,8 @@ #include #include +#include + //////////////////////////////////////////////////////////// /// \defgroup window Window module diff --git a/include/SFML/Window/Context.hpp b/include/SFML/Window/Context.hpp index ac6a1607..6c3499f7 100644 --- a/include/SFML/Window/Context.hpp +++ b/include/SFML/Window/Context.hpp @@ -29,12 +29,14 @@ //////////////////////////////////////////////////////////// #include -#include #include -#include +#include + #include +#include + namespace sf { diff --git a/include/SFML/Window/Cursor.hpp b/include/SFML/Window/Cursor.hpp index bd2869b2..d2a43a47 100644 --- a/include/SFML/Window/Cursor.hpp +++ b/include/SFML/Window/Cursor.hpp @@ -31,9 +31,10 @@ #include -#include #include +#include + namespace sf { namespace priv diff --git a/include/SFML/Window/Vulkan.hpp b/include/SFML/Window/Vulkan.hpp index 9a36e4d7..b1f1a724 100644 --- a/include/SFML/Window/Vulkan.hpp +++ b/include/SFML/Window/Vulkan.hpp @@ -29,9 +29,10 @@ //////////////////////////////////////////////////////////// #include -#include #include +#include + using VkInstance = struct VkInstance_T*; diff --git a/include/SFML/Window/Window.hpp b/include/SFML/Window/Window.hpp index 698d0745..2dc8bd0f 100644 --- a/include/SFML/Window/Window.hpp +++ b/include/SFML/Window/Window.hpp @@ -27,12 +27,13 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include -#include #include #include #include +#include +#include + #include diff --git a/include/SFML/Window/WindowBase.hpp b/include/SFML/Window/WindowBase.hpp index 789c2738..637be9a1 100644 --- a/include/SFML/Window/WindowBase.hpp +++ b/include/SFML/Window/WindowBase.hpp @@ -29,11 +29,12 @@ //////////////////////////////////////////////////////////// #include -#include #include #include #include +#include + #include diff --git a/src/SFML/Audio/ALCheck.cpp b/src/SFML/Audio/ALCheck.cpp index f3fc8cf5..d816ef3a 100644 --- a/src/SFML/Audio/ALCheck.cpp +++ b/src/SFML/Audio/ALCheck.cpp @@ -26,6 +26,7 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include diff --git a/src/SFML/Audio/AudioDevice.cpp b/src/SFML/Audio/AudioDevice.cpp index 62cf520c..6e632353 100644 --- a/src/SFML/Audio/AudioDevice.cpp +++ b/src/SFML/Audio/AudioDevice.cpp @@ -28,6 +28,7 @@ #include #include #include + #include #include diff --git a/src/SFML/Audio/InputSoundFile.cpp b/src/SFML/Audio/InputSoundFile.cpp index 2719ff66..46eb3b05 100644 --- a/src/SFML/Audio/InputSoundFile.cpp +++ b/src/SFML/Audio/InputSoundFile.cpp @@ -28,6 +28,7 @@ #include #include #include + #include #include #include diff --git a/src/SFML/Audio/Music.cpp b/src/SFML/Audio/Music.cpp index 605589c6..305e41d3 100644 --- a/src/SFML/Audio/Music.cpp +++ b/src/SFML/Audio/Music.cpp @@ -27,6 +27,7 @@ //////////////////////////////////////////////////////////// #include #include + #include #include diff --git a/src/SFML/Audio/SoundBuffer.cpp b/src/SFML/Audio/SoundBuffer.cpp index 3fd4cbaf..c3accbaa 100644 --- a/src/SFML/Audio/SoundBuffer.cpp +++ b/src/SFML/Audio/SoundBuffer.cpp @@ -31,6 +31,7 @@ #include #include #include + #include #include diff --git a/src/SFML/Audio/SoundBufferRecorder.cpp b/src/SFML/Audio/SoundBufferRecorder.cpp index 07359d73..bc5625e5 100644 --- a/src/SFML/Audio/SoundBufferRecorder.cpp +++ b/src/SFML/Audio/SoundBufferRecorder.cpp @@ -26,6 +26,7 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include diff --git a/src/SFML/Audio/SoundFileFactory.cpp b/src/SFML/Audio/SoundFileFactory.cpp index 40504cde..592cc452 100644 --- a/src/SFML/Audio/SoundFileFactory.cpp +++ b/src/SFML/Audio/SoundFileFactory.cpp @@ -33,6 +33,7 @@ #include #include #include + #include #include #include diff --git a/src/SFML/Audio/SoundFileReaderFlac.cpp b/src/SFML/Audio/SoundFileReaderFlac.cpp index 865b32b5..226b6c5c 100644 --- a/src/SFML/Audio/SoundFileReaderFlac.cpp +++ b/src/SFML/Audio/SoundFileReaderFlac.cpp @@ -26,12 +26,14 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include -#include #include +#include + namespace { diff --git a/src/SFML/Audio/SoundFileReaderMp3.cpp b/src/SFML/Audio/SoundFileReaderMp3.cpp index 995d1bc8..b7c251ac 100644 --- a/src/SFML/Audio/SoundFileReaderMp3.cpp +++ b/src/SFML/Audio/SoundFileReaderMp3.cpp @@ -51,9 +51,11 @@ #undef MINIMP3_NO_STDIO #include + #include #include + #include diff --git a/src/SFML/Audio/SoundFileReaderOgg.cpp b/src/SFML/Audio/SoundFileReaderOgg.cpp index b9c6c0a1..70e5b63f 100644 --- a/src/SFML/Audio/SoundFileReaderOgg.cpp +++ b/src/SFML/Audio/SoundFileReaderOgg.cpp @@ -26,12 +26,14 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include +#include + #include #include -#include namespace diff --git a/src/SFML/Audio/SoundFileReaderWav.cpp b/src/SFML/Audio/SoundFileReaderWav.cpp index ef8a9424..5a2704a5 100644 --- a/src/SFML/Audio/SoundFileReaderWav.cpp +++ b/src/SFML/Audio/SoundFileReaderWav.cpp @@ -26,14 +26,16 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include #include +#include + #include #include #include -#include namespace diff --git a/src/SFML/Audio/SoundFileWriterFlac.cpp b/src/SFML/Audio/SoundFileWriterFlac.cpp index a3f73a0b..d1bf8c0e 100644 --- a/src/SFML/Audio/SoundFileWriterFlac.cpp +++ b/src/SFML/Audio/SoundFileWriterFlac.cpp @@ -26,13 +26,15 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include #include +#include + #include #include -#include namespace sf::priv diff --git a/src/SFML/Audio/SoundFileWriterOgg.cpp b/src/SFML/Audio/SoundFileWriterOgg.cpp index 354f75e9..7cbefeb9 100644 --- a/src/SFML/Audio/SoundFileWriterOgg.cpp +++ b/src/SFML/Audio/SoundFileWriterOgg.cpp @@ -26,15 +26,17 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include #include -#include -#include #include #include +#include +#include + namespace sf::priv { diff --git a/src/SFML/Audio/SoundFileWriterWav.cpp b/src/SFML/Audio/SoundFileWriterWav.cpp index 5ce7cc7a..ef86b519 100644 --- a/src/SFML/Audio/SoundFileWriterWav.cpp +++ b/src/SFML/Audio/SoundFileWriterWav.cpp @@ -26,12 +26,14 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include -#include #include +#include + namespace { diff --git a/src/SFML/Audio/SoundRecorder.cpp b/src/SFML/Audio/SoundRecorder.cpp index cf08aca2..22c0cc5d 100644 --- a/src/SFML/Audio/SoundRecorder.cpp +++ b/src/SFML/Audio/SoundRecorder.cpp @@ -28,12 +28,14 @@ #include #include #include + #include #include +#include + #include #include -#include #ifdef _MSC_VER #pragma warning(disable : 4355) // 'this' used in base member initializer list diff --git a/src/SFML/Audio/SoundStream.cpp b/src/SFML/Audio/SoundStream.cpp index fee7c1c3..03042986 100644 --- a/src/SFML/Audio/SoundStream.cpp +++ b/src/SFML/Audio/SoundStream.cpp @@ -28,13 +28,15 @@ #include #include #include + #include #include -#include #include #include +#include + #ifdef _MSC_VER #pragma warning(disable : 4355) // 'this' used in base member initializer list #endif diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp index 3ecdce06..77a1e59f 100644 --- a/src/SFML/Graphics/Font.cpp +++ b/src/SFML/Graphics/Font.cpp @@ -41,11 +41,12 @@ #include FT_OUTLINE_H #include FT_BITMAP_H #include FT_STROKER_H +#include +#include + #include #include #include -#include -#include namespace diff --git a/src/SFML/Graphics/GLCheck.cpp b/src/SFML/Graphics/GLCheck.cpp index 9b45795a..c6d5dd01 100644 --- a/src/SFML/Graphics/GLCheck.cpp +++ b/src/SFML/Graphics/GLCheck.cpp @@ -26,6 +26,7 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include diff --git a/src/SFML/Graphics/GLExtensions.cpp b/src/SFML/Graphics/GLExtensions.cpp index 59d22008..8b35c71b 100644 --- a/src/SFML/Graphics/GLExtensions.cpp +++ b/src/SFML/Graphics/GLExtensions.cpp @@ -26,9 +26,11 @@ // Headers //////////////////////////////////////////////////////////// #include -#include + #include +#include + // We check for this definition in order to avoid multiple definitions of GLAD // entities during unity builds of SFML. #ifndef SF_GLAD_GL_IMPLEMENTATION_INCLUDED diff --git a/src/SFML/Graphics/Image.cpp b/src/SFML/Graphics/Image.cpp index de1d0aba..4f84c9de 100644 --- a/src/SFML/Graphics/Image.cpp +++ b/src/SFML/Graphics/Image.cpp @@ -27,14 +27,16 @@ //////////////////////////////////////////////////////////// #include #include + #include #ifdef SFML_SYSTEM_ANDROID #include #endif #include -#include #include +#include + namespace sf { diff --git a/src/SFML/Graphics/ImageLoader.cpp b/src/SFML/Graphics/ImageLoader.cpp index d5965838..bdf10825 100644 --- a/src/SFML/Graphics/ImageLoader.cpp +++ b/src/SFML/Graphics/ImageLoader.cpp @@ -26,6 +26,7 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include #include diff --git a/src/SFML/Graphics/RenderTarget.cpp b/src/SFML/Graphics/RenderTarget.cpp index 3eb3130c..806ff024 100644 --- a/src/SFML/Graphics/RenderTarget.cpp +++ b/src/SFML/Graphics/RenderTarget.cpp @@ -32,17 +32,20 @@ #include #include #include -#include + #include +#include + #include -#include -#include #include #include #include #include +#include +#include + namespace { diff --git a/src/SFML/Graphics/RenderTexture.cpp b/src/SFML/Graphics/RenderTexture.cpp index a6c873a8..f38945c6 100644 --- a/src/SFML/Graphics/RenderTexture.cpp +++ b/src/SFML/Graphics/RenderTexture.cpp @@ -28,6 +28,7 @@ #include #include #include + #include #include diff --git a/src/SFML/Graphics/RenderTextureImplDefault.cpp b/src/SFML/Graphics/RenderTextureImplDefault.cpp index 9894e5b6..2cf9f1d8 100644 --- a/src/SFML/Graphics/RenderTextureImplDefault.cpp +++ b/src/SFML/Graphics/RenderTextureImplDefault.cpp @@ -28,6 +28,7 @@ #include #include #include + #include #include diff --git a/src/SFML/Graphics/RenderTextureImplDefault.hpp b/src/SFML/Graphics/RenderTextureImplDefault.hpp index 82c2ffad..f97e6ab6 100644 --- a/src/SFML/Graphics/RenderTextureImplDefault.hpp +++ b/src/SFML/Graphics/RenderTextureImplDefault.hpp @@ -28,6 +28,7 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include diff --git a/src/SFML/Graphics/RenderTextureImplFBO.cpp b/src/SFML/Graphics/RenderTextureImplFBO.cpp index 223a2349..eea18150 100644 --- a/src/SFML/Graphics/RenderTextureImplFBO.cpp +++ b/src/SFML/Graphics/RenderTextureImplFBO.cpp @@ -28,10 +28,12 @@ #include #include #include -#include + #include #include +#include + #include #include #include diff --git a/src/SFML/Graphics/RenderTextureImplFBO.hpp b/src/SFML/Graphics/RenderTextureImplFBO.hpp index 435623b3..faa4f516 100644 --- a/src/SFML/Graphics/RenderTextureImplFBO.hpp +++ b/src/SFML/Graphics/RenderTextureImplFBO.hpp @@ -28,6 +28,7 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include diff --git a/src/SFML/Graphics/RenderWindow.cpp b/src/SFML/Graphics/RenderWindow.cpp index ef7d457c..344a0a32 100644 --- a/src/SFML/Graphics/RenderWindow.cpp +++ b/src/SFML/Graphics/RenderWindow.cpp @@ -30,6 +30,7 @@ #include #include #include + #include diff --git a/src/SFML/Graphics/Shader.cpp b/src/SFML/Graphics/Shader.cpp index 1698c40b..08b55646 100644 --- a/src/SFML/Graphics/Shader.cpp +++ b/src/SFML/Graphics/Shader.cpp @@ -31,10 +31,12 @@ #include #include #include + +#include + #include #include #include -#include #include #include diff --git a/src/SFML/Graphics/Text.cpp b/src/SFML/Graphics/Text.cpp index f1ecef46..ca36a92b 100644 --- a/src/SFML/Graphics/Text.cpp +++ b/src/SFML/Graphics/Text.cpp @@ -31,9 +31,10 @@ #include #include -#include #include +#include + namespace { diff --git a/src/SFML/Graphics/Texture.cpp b/src/SFML/Graphics/Texture.cpp index 0d928a49..c7a67e3f 100644 --- a/src/SFML/Graphics/Texture.cpp +++ b/src/SFML/Graphics/Texture.cpp @@ -29,16 +29,19 @@ #include #include #include -#include + #include #include +#include + #include +#include +#include + #include #include #include -#include -#include namespace diff --git a/src/SFML/Graphics/Transform.cpp b/src/SFML/Graphics/Transform.cpp index 07cb337e..91742c13 100644 --- a/src/SFML/Graphics/Transform.cpp +++ b/src/SFML/Graphics/Transform.cpp @@ -26,6 +26,7 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include diff --git a/src/SFML/Graphics/VertexBuffer.cpp b/src/SFML/Graphics/VertexBuffer.cpp index df7c12fd..296c9391 100644 --- a/src/SFML/Graphics/VertexBuffer.cpp +++ b/src/SFML/Graphics/VertexBuffer.cpp @@ -29,12 +29,14 @@ #include #include #include + #include +#include +#include + #include #include -#include -#include namespace { diff --git a/src/SFML/Main/MainAndroid.cpp b/src/SFML/Main/MainAndroid.cpp index aa71e77e..86d8912e 100644 --- a/src/SFML/Main/MainAndroid.cpp +++ b/src/SFML/Main/MainAndroid.cpp @@ -46,11 +46,12 @@ #include #include -#include -#include #include #include +#include +#include + #define SF_GLAD_EGL_IMPLEMENTATION #include diff --git a/src/SFML/Network/Ftp.cpp b/src/SFML/Network/Ftp.cpp index 1b56300d..ed36b40a 100644 --- a/src/SFML/Network/Ftp.cpp +++ b/src/SFML/Network/Ftp.cpp @@ -27,17 +27,19 @@ //////////////////////////////////////////////////////////// #include #include + #include #include -#include -#include #include #include #include #include #include +#include +#include + namespace sf { diff --git a/src/SFML/Network/Http.cpp b/src/SFML/Network/Http.cpp index 02841ae9..a5599588 100644 --- a/src/SFML/Network/Http.cpp +++ b/src/SFML/Network/Http.cpp @@ -26,6 +26,7 @@ // Headers //////////////////////////////////////////////////////////// #include + #include #include diff --git a/src/SFML/Network/IpAddress.cpp b/src/SFML/Network/IpAddress.cpp index 6e297680..be4c3e40 100644 --- a/src/SFML/Network/IpAddress.cpp +++ b/src/SFML/Network/IpAddress.cpp @@ -29,11 +29,12 @@ #include #include -#include #include #include #include +#include + namespace sf { diff --git a/src/SFML/Network/Packet.cpp b/src/SFML/Network/Packet.cpp index 3f41038d..e6738468 100644 --- a/src/SFML/Network/Packet.cpp +++ b/src/SFML/Network/Packet.cpp @@ -27,6 +27,7 @@ //////////////////////////////////////////////////////////// #include #include + #include #include diff --git a/src/SFML/Network/Socket.cpp b/src/SFML/Network/Socket.cpp index ecae65f7..a1e0352a 100644 --- a/src/SFML/Network/Socket.cpp +++ b/src/SFML/Network/Socket.cpp @@ -27,6 +27,7 @@ //////////////////////////////////////////////////////////// #include #include + #include #include diff --git a/src/SFML/Network/SocketSelector.cpp b/src/SFML/Network/SocketSelector.cpp index c7fb0836..bc8bf1c8 100644 --- a/src/SFML/Network/SocketSelector.cpp +++ b/src/SFML/Network/SocketSelector.cpp @@ -28,6 +28,7 @@ #include #include #include + #include #include diff --git a/src/SFML/Network/TcpListener.cpp b/src/SFML/Network/TcpListener.cpp index ab1ba840..40bdaa8a 100644 --- a/src/SFML/Network/TcpListener.cpp +++ b/src/SFML/Network/TcpListener.cpp @@ -28,6 +28,7 @@ #include #include #include + #include #include diff --git a/src/SFML/Network/TcpSocket.cpp b/src/SFML/Network/TcpSocket.cpp index a94f8a43..890a5ef4 100644 --- a/src/SFML/Network/TcpSocket.cpp +++ b/src/SFML/Network/TcpSocket.cpp @@ -29,12 +29,14 @@ #include #include #include + #include #include -#include #include +#include + #ifdef _MSC_VER #pragma warning(disable : 4127) // "conditional expression is constant" generated by the FD_SET macro #endif diff --git a/src/SFML/Network/UdpSocket.cpp b/src/SFML/Network/UdpSocket.cpp index 1247b3ae..5e1ea105 100644 --- a/src/SFML/Network/UdpSocket.cpp +++ b/src/SFML/Network/UdpSocket.cpp @@ -29,11 +29,13 @@ #include #include #include + #include -#include #include +#include + namespace sf { diff --git a/src/SFML/Network/Unix/SocketImpl.cpp b/src/SFML/Network/Unix/SocketImpl.cpp index 876c8c29..1eeb626c 100644 --- a/src/SFML/Network/Unix/SocketImpl.cpp +++ b/src/SFML/Network/Unix/SocketImpl.cpp @@ -26,12 +26,14 @@ // Headers //////////////////////////////////////////////////////////// #include + #include +#include +#include + #include #include -#include -#include namespace sf::priv diff --git a/src/SFML/Network/Unix/SocketImpl.hpp b/src/SFML/Network/Unix/SocketImpl.hpp index a8ae7ecf..f2bc2612 100644 --- a/src/SFML/Network/Unix/SocketImpl.hpp +++ b/src/SFML/Network/Unix/SocketImpl.hpp @@ -30,7 +30,6 @@ #include #include -#include #include #include #include @@ -38,6 +37,8 @@ #include #include +#include + namespace sf::priv { diff --git a/src/SFML/Network/Win32/SocketImpl.hpp b/src/SFML/Network/Win32/SocketImpl.hpp index 1e394f0b..10d8c32c 100644 --- a/src/SFML/Network/Win32/SocketImpl.hpp +++ b/src/SFML/Network/Win32/SocketImpl.hpp @@ -28,12 +28,14 @@ // Headers //////////////////////////////////////////////////////////// #include + #include -#include #include #include +#include + namespace sf::priv { diff --git a/src/SFML/PCH.hpp b/src/SFML/PCH.hpp index 8009cc5f..06ff90e7 100644 --- a/src/SFML/PCH.hpp +++ b/src/SFML/PCH.hpp @@ -45,12 +45,7 @@ #include #include -#include #include -#include -#include -#include -#include #include #include #include @@ -61,3 +56,9 @@ #include #include #include + +#include +#include +#include +#include +#include diff --git a/src/SFML/System/Err.cpp b/src/SFML/System/Err.cpp index d35e95ab..bd81ae8c 100644 --- a/src/SFML/System/Err.cpp +++ b/src/SFML/System/Err.cpp @@ -27,10 +27,11 @@ //////////////////////////////////////////////////////////// #include -#include #include #include +#include + namespace { diff --git a/src/SFML/System/FileInputStream.cpp b/src/SFML/System/FileInputStream.cpp index 40fd093c..eb85c0d0 100644 --- a/src/SFML/System/FileInputStream.cpp +++ b/src/SFML/System/FileInputStream.cpp @@ -29,9 +29,10 @@ #ifdef SFML_SYSTEM_ANDROID #include #endif -#include #include +#include + namespace sf { //////////////////////////////////////////////////////////// diff --git a/src/SFML/System/String.cpp b/src/SFML/System/String.cpp index 32333b5e..4c0e9949 100644 --- a/src/SFML/System/String.cpp +++ b/src/SFML/System/String.cpp @@ -28,10 +28,11 @@ #include #include -#include #include #include +#include + namespace sf { diff --git a/src/SFML/System/Utils.hpp b/src/SFML/System/Utils.hpp index 2a676002..30dda796 100644 --- a/src/SFML/System/Utils.hpp +++ b/src/SFML/System/Utils.hpp @@ -27,11 +27,12 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include #include +#include + namespace sf { diff --git a/src/SFML/System/Vector2.cpp b/src/SFML/System/Vector2.cpp index 53b1a8d6..397ea8ae 100644 --- a/src/SFML/System/Vector2.cpp +++ b/src/SFML/System/Vector2.cpp @@ -24,9 +24,10 @@ #include +#include + #include #include -#include namespace sf diff --git a/src/SFML/System/Vector3.cpp b/src/SFML/System/Vector3.cpp index ccfe8e10..313539fc 100644 --- a/src/SFML/System/Vector3.cpp +++ b/src/SFML/System/Vector3.cpp @@ -24,9 +24,10 @@ #include +#include + #include #include -#include namespace sf diff --git a/src/SFML/Window/Android/ClipboardImpl.cpp b/src/SFML/Window/Android/ClipboardImpl.cpp index aa38e41c..d1e9cfe5 100644 --- a/src/SFML/Window/Android/ClipboardImpl.cpp +++ b/src/SFML/Window/Android/ClipboardImpl.cpp @@ -25,9 +25,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// +#include + #include #include -#include #include diff --git a/src/SFML/Window/Android/CursorImpl.hpp b/src/SFML/Window/Android/CursorImpl.hpp index 9b7d4b9b..23f7ee81 100644 --- a/src/SFML/Window/Android/CursorImpl.hpp +++ b/src/SFML/Window/Android/CursorImpl.hpp @@ -27,9 +27,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + namespace sf::priv { diff --git a/src/SFML/Window/Android/InputImpl.cpp b/src/SFML/Window/Android/InputImpl.cpp index e75f8289..b9a0d8c7 100644 --- a/src/SFML/Window/Android/InputImpl.cpp +++ b/src/SFML/Window/Android/InputImpl.cpp @@ -25,9 +25,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// +#include + #include #include -#include #include diff --git a/src/SFML/Window/Android/SensorImpl.cpp b/src/SFML/Window/Android/SensorImpl.cpp index be976f4c..cecd32aa 100644 --- a/src/SFML/Window/Android/SensorImpl.cpp +++ b/src/SFML/Window/Android/SensorImpl.cpp @@ -25,9 +25,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + #include #if defined(__clang__) || defined(__GNUC__) diff --git a/src/SFML/Window/Android/VideoModeImpl.cpp b/src/SFML/Window/Android/VideoModeImpl.cpp index b66ab10f..c857ba5e 100644 --- a/src/SFML/Window/Android/VideoModeImpl.cpp +++ b/src/SFML/Window/Android/VideoModeImpl.cpp @@ -25,10 +25,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// +#include + #include #include #include -#include #include diff --git a/src/SFML/Window/Android/WindowImplAndroid.cpp b/src/SFML/Window/Android/WindowImplAndroid.cpp index 415bf5a9..265d76b0 100644 --- a/src/SFML/Window/Android/WindowImplAndroid.cpp +++ b/src/SFML/Window/Android/WindowImplAndroid.cpp @@ -26,11 +26,12 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include #include +#include + #include #include diff --git a/src/SFML/Window/Android/WindowImplAndroid.hpp b/src/SFML/Window/Android/WindowImplAndroid.hpp index 4f9866c0..96f641df 100644 --- a/src/SFML/Window/Android/WindowImplAndroid.hpp +++ b/src/SFML/Window/Android/WindowImplAndroid.hpp @@ -27,11 +27,12 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include #include +#include + #include diff --git a/src/SFML/Window/Clipboard.cpp b/src/SFML/Window/Clipboard.cpp index cd55c275..c1be1218 100644 --- a/src/SFML/Window/Clipboard.cpp +++ b/src/SFML/Window/Clipboard.cpp @@ -25,10 +25,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + namespace sf { diff --git a/src/SFML/Window/Context.cpp b/src/SFML/Window/Context.cpp index 6076e7ef..a3ee080b 100644 --- a/src/SFML/Window/Context.cpp +++ b/src/SFML/Window/Context.cpp @@ -25,10 +25,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + #include diff --git a/src/SFML/Window/Cursor.cpp b/src/SFML/Window/Cursor.cpp index 37a79d6c..265d83b1 100644 --- a/src/SFML/Window/Cursor.cpp +++ b/src/SFML/Window/Cursor.cpp @@ -25,10 +25,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + #include namespace sf diff --git a/src/SFML/Window/DRM/ClipboardImpl.cpp b/src/SFML/Window/DRM/ClipboardImpl.cpp index 02f946e2..3fc2f7e5 100644 --- a/src/SFML/Window/DRM/ClipboardImpl.cpp +++ b/src/SFML/Window/DRM/ClipboardImpl.cpp @@ -25,9 +25,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + namespace sf::priv { //////////////////////////////////////////////////////////// diff --git a/src/SFML/Window/DRM/CursorImpl.hpp b/src/SFML/Window/DRM/CursorImpl.hpp index 0039c509..9c958c73 100644 --- a/src/SFML/Window/DRM/CursorImpl.hpp +++ b/src/SFML/Window/DRM/CursorImpl.hpp @@ -27,10 +27,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include // Prevent conflict with macro None from Xlib +#include + namespace sf::priv { diff --git a/src/SFML/Window/DRM/DRMContext.cpp b/src/SFML/Window/DRM/DRMContext.cpp index 5cfeb874..43bd3659 100644 --- a/src/SFML/Window/DRM/DRMContext.cpp +++ b/src/SFML/Window/DRM/DRMContext.cpp @@ -26,19 +26,21 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include -#include #include #include -#include -#include -#include +#include +#include + #include #include #include #include +#include +#include +#include + // We check for this definition in order to avoid multiple definitions of GLAD // entities during unity builds of SFML. #ifndef SF_GLAD_EGL_IMPLEMENTATION_INCLUDED diff --git a/src/SFML/Window/DRM/InputImplUDev.cpp b/src/SFML/Window/DRM/InputImplUDev.cpp index af7df8bd..ccddfe0b 100644 --- a/src/SFML/Window/DRM/InputImplUDev.cpp +++ b/src/SFML/Window/DRM/InputImplUDev.cpp @@ -25,14 +25,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + #include -#include -#include -#include -#include #include #include #include @@ -43,6 +40,11 @@ #include #include +#include +#include +#include +#include + namespace { diff --git a/src/SFML/Window/DRM/VideoModeImpl.cpp b/src/SFML/Window/DRM/VideoModeImpl.cpp index 6c1bacdd..69867b6e 100644 --- a/src/SFML/Window/DRM/VideoModeImpl.cpp +++ b/src/SFML/Window/DRM/VideoModeImpl.cpp @@ -25,10 +25,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + namespace sf::priv { diff --git a/src/SFML/Window/DRM/WindowImplDRM.cpp b/src/SFML/Window/DRM/WindowImplDRM.cpp index b3ba7315..5b98139c 100644 --- a/src/SFML/Window/DRM/WindowImplDRM.cpp +++ b/src/SFML/Window/DRM/WindowImplDRM.cpp @@ -25,13 +25,14 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include #include #include #include +#include + namespace sf::priv { diff --git a/src/SFML/Window/EGLCheck.cpp b/src/SFML/Window/EGLCheck.cpp index 7d4d7646..a81b0417 100644 --- a/src/SFML/Window/EGLCheck.cpp +++ b/src/SFML/Window/EGLCheck.cpp @@ -26,9 +26,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + #include #include diff --git a/src/SFML/Window/EglContext.cpp b/src/SFML/Window/EglContext.cpp index 92592185..2f07f6a5 100644 --- a/src/SFML/Window/EglContext.cpp +++ b/src/SFML/Window/EglContext.cpp @@ -26,11 +26,12 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include -#include #include #include +#include +#include + #include #include #include diff --git a/src/SFML/Window/FreeBSD/JoystickImpl.cpp b/src/SFML/Window/FreeBSD/JoystickImpl.cpp index 305fc093..20c67f3e 100644 --- a/src/SFML/Window/FreeBSD/JoystickImpl.cpp +++ b/src/SFML/Window/FreeBSD/JoystickImpl.cpp @@ -28,7 +28,6 @@ //////////////////////////////////////////////////////////// #include -#include #include #include #include @@ -37,6 +36,8 @@ #include #include +#include + //////////////////////////////////////////////////////////// /// \brief This file implements FreeBSD driver joystick /// diff --git a/src/SFML/Window/GlContext.cpp b/src/SFML/Window/GlContext.cpp index 636ed6cd..4c3e3100 100644 --- a/src/SFML/Window/GlContext.cpp +++ b/src/SFML/Window/GlContext.cpp @@ -25,18 +25,15 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + #include #include #include -#include -#include -#include -#include #include #include #include @@ -47,6 +44,11 @@ #include #include +#include +#include +#include +#include + #if defined(SFML_SYSTEM_WINDOWS) diff --git a/src/SFML/Window/GlContext.hpp b/src/SFML/Window/GlContext.hpp index 96f1c898..a4258749 100644 --- a/src/SFML/Window/GlContext.hpp +++ b/src/SFML/Window/GlContext.hpp @@ -33,9 +33,10 @@ #include #include -#include #include +#include + namespace sf::priv { diff --git a/src/SFML/Window/Keyboard.cpp b/src/SFML/Window/Keyboard.cpp index e5923686..449ae0d6 100644 --- a/src/SFML/Window/Keyboard.cpp +++ b/src/SFML/Window/Keyboard.cpp @@ -25,10 +25,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + namespace sf { diff --git a/src/SFML/Window/NetBSD/JoystickImpl.cpp b/src/SFML/Window/NetBSD/JoystickImpl.cpp index 4d8c5ade..e62ba348 100644 --- a/src/SFML/Window/NetBSD/JoystickImpl.cpp +++ b/src/SFML/Window/NetBSD/JoystickImpl.cpp @@ -28,7 +28,6 @@ //////////////////////////////////////////////////////////// #include -#include #include #include #include @@ -37,6 +36,8 @@ #include #include +#include + //////////////////////////////////////////////////////////// /// \brief This file implements NetBSD driver joystick /// diff --git a/src/SFML/Window/OSX/ClipboardImpl.mm b/src/SFML/Window/OSX/ClipboardImpl.mm index 4b80cbe2..55d7ddef 100644 --- a/src/SFML/Window/OSX/ClipboardImpl.mm +++ b/src/SFML/Window/OSX/ClipboardImpl.mm @@ -25,10 +25,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + #import namespace sf::priv diff --git a/src/SFML/Window/OSX/CursorImpl.hpp b/src/SFML/Window/OSX/CursorImpl.hpp index e97bdfa0..3610af6d 100644 --- a/src/SFML/Window/OSX/CursorImpl.hpp +++ b/src/SFML/Window/OSX/CursorImpl.hpp @@ -28,9 +28,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + //////////////////////////////////////////////////////////// // Predefine OBJ-C classes //////////////////////////////////////////////////////////// diff --git a/src/SFML/Window/OSX/HIDInputManager.hpp b/src/SFML/Window/OSX/HIDInputManager.hpp index 5440f709..64d5d183 100644 --- a/src/SFML/Window/OSX/HIDInputManager.hpp +++ b/src/SFML/Window/OSX/HIDInputManager.hpp @@ -31,11 +31,12 @@ #include #include -#include #include #include #include +#include + namespace sf::priv { diff --git a/src/SFML/Window/OSX/HIDInputManager.mm b/src/SFML/Window/OSX/HIDInputManager.mm index 95c75f7a..758cce97 100644 --- a/src/SFML/Window/OSX/HIDInputManager.mm +++ b/src/SFML/Window/OSX/HIDInputManager.mm @@ -26,9 +26,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + #include #include diff --git a/src/SFML/Window/OSX/InputImpl.mm b/src/SFML/Window/OSX/InputImpl.mm index 82e3a6e8..4749c309 100644 --- a/src/SFML/Window/OSX/InputImpl.mm +++ b/src/SFML/Window/OSX/InputImpl.mm @@ -26,7 +26,6 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include #include @@ -34,6 +33,8 @@ #include #include +#include + #import #include diff --git a/src/SFML/Window/OSX/JoystickImpl.cpp b/src/SFML/Window/OSX/JoystickImpl.cpp index 1a2b6807..9f73ab65 100644 --- a/src/SFML/Window/OSX/JoystickImpl.cpp +++ b/src/SFML/Window/OSX/JoystickImpl.cpp @@ -26,12 +26,13 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include #include #include +#include + #include diff --git a/src/SFML/Window/OSX/JoystickImpl.hpp b/src/SFML/Window/OSX/JoystickImpl.hpp index 6608f0a5..0067b991 100644 --- a/src/SFML/Window/OSX/JoystickImpl.hpp +++ b/src/SFML/Window/OSX/JoystickImpl.hpp @@ -30,12 +30,13 @@ //////////////////////////////////////////////////////////// #include -#include #include #include #include #include +#include + namespace sf::priv { //////////////////////////////////////////////////////////// diff --git a/src/SFML/Window/OSX/NSImage+raw.h b/src/SFML/Window/OSX/NSImage+raw.h index d37c6b68..7c0fa92c 100644 --- a/src/SFML/Window/OSX/NSImage+raw.h +++ b/src/SFML/Window/OSX/NSImage+raw.h @@ -29,6 +29,7 @@ #include #import + #include //////////////////////////////////////////////////////////// diff --git a/src/SFML/Window/OSX/SFContext.mm b/src/SFML/Window/OSX/SFContext.mm index 8579436d..e5535aa4 100644 --- a/src/SFML/Window/OSX/SFContext.mm +++ b/src/SFML/Window/OSX/SFContext.mm @@ -26,11 +26,12 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include #include +#include + #include #include diff --git a/src/SFML/Window/OSX/SFOpenGLView.mm b/src/SFML/Window/OSX/SFOpenGLView.mm index f1d2cb37..3ed94cda 100644 --- a/src/SFML/Window/OSX/SFOpenGLView.mm +++ b/src/SFML/Window/OSX/SFOpenGLView.mm @@ -26,12 +26,13 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #import #import #import #include +#include + #pragma GCC diagnostic ignored "-Wdeprecated-declarations" diff --git a/src/SFML/Window/OSX/SFViewController.mm b/src/SFML/Window/OSX/SFViewController.mm index ba4a10d7..8e9acbaa 100644 --- a/src/SFML/Window/OSX/SFViewController.mm +++ b/src/SFML/Window/OSX/SFViewController.mm @@ -26,12 +26,13 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #import #import #import #include +#include + #include #pragma GCC diagnostic ignored "-Wdeprecated-declarations" diff --git a/src/SFML/Window/OSX/SFWindowController.mm b/src/SFML/Window/OSX/SFWindowController.mm index 5403982e..17d67ed5 100644 --- a/src/SFML/Window/OSX/SFWindowController.mm +++ b/src/SFML/Window/OSX/SFWindowController.mm @@ -26,7 +26,6 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #import #import #import @@ -38,6 +37,8 @@ #include #include +#include + #include #import #include diff --git a/src/SFML/Window/OSX/VideoModeImpl.cpp b/src/SFML/Window/OSX/VideoModeImpl.cpp index f92e1dc9..b8f40ebb 100644 --- a/src/SFML/Window/OSX/VideoModeImpl.cpp +++ b/src/SFML/Window/OSX/VideoModeImpl.cpp @@ -26,10 +26,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + #include #include diff --git a/src/SFML/Window/OSX/WindowImplCocoa.mm b/src/SFML/Window/OSX/WindowImplCocoa.mm index 7870264e..57fc3c74 100644 --- a/src/SFML/Window/OSX/WindowImplCocoa.mm +++ b/src/SFML/Window/OSX/WindowImplCocoa.mm @@ -26,8 +26,6 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include -#include #include #import #import @@ -38,6 +36,9 @@ #include #import +#include +#include + #include namespace sf::priv diff --git a/src/SFML/Window/OSX/WindowImplDelegateProtocol.h b/src/SFML/Window/OSX/WindowImplDelegateProtocol.h index 81121561..f8063d98 100644 --- a/src/SFML/Window/OSX/WindowImplDelegateProtocol.h +++ b/src/SFML/Window/OSX/WindowImplDelegateProtocol.h @@ -31,6 +31,7 @@ #include #import + #include #pragma GCC diagnostic push diff --git a/src/SFML/Window/OSX/cg_sf_conversion.mm b/src/SFML/Window/OSX/cg_sf_conversion.mm index fe134dd6..143583c9 100644 --- a/src/SFML/Window/OSX/cg_sf_conversion.mm +++ b/src/SFML/Window/OSX/cg_sf_conversion.mm @@ -26,10 +26,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #import #include +#include + #pragma GCC diagnostic ignored "-Wdeprecated-declarations" namespace sf::priv diff --git a/src/SFML/Window/OSX/cpp_objc_conversion.mm b/src/SFML/Window/OSX/cpp_objc_conversion.mm index fa805377..33b62b94 100644 --- a/src/SFML/Window/OSX/cpp_objc_conversion.mm +++ b/src/SFML/Window/OSX/cpp_objc_conversion.mm @@ -26,9 +26,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #import +#include + #import //////////////////////////////////////////////////////////// diff --git a/src/SFML/Window/SensorManager.cpp b/src/SFML/Window/SensorManager.cpp index 23f4f077..a26e9cd1 100644 --- a/src/SFML/Window/SensorManager.cpp +++ b/src/SFML/Window/SensorManager.cpp @@ -25,9 +25,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + #include diff --git a/src/SFML/Window/Unix/ClipboardImpl.cpp b/src/SFML/Window/Unix/ClipboardImpl.cpp index 1ac66c17..4f3a3e28 100644 --- a/src/SFML/Window/Unix/ClipboardImpl.cpp +++ b/src/SFML/Window/Unix/ClipboardImpl.cpp @@ -25,11 +25,12 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// +#include +#include + #include #include #include -#include -#include #include diff --git a/src/SFML/Window/Unix/ClipboardImpl.hpp b/src/SFML/Window/Unix/ClipboardImpl.hpp index cf317f76..9a35dc67 100644 --- a/src/SFML/Window/Unix/ClipboardImpl.hpp +++ b/src/SFML/Window/Unix/ClipboardImpl.hpp @@ -27,9 +27,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include // Prevent conflict with macro None from Xlib +#include + #include #include diff --git a/src/SFML/Window/Unix/CursorImpl.cpp b/src/SFML/Window/Unix/CursorImpl.cpp index b9844f5c..2b2ab31a 100644 --- a/src/SFML/Window/Unix/CursorImpl.cpp +++ b/src/SFML/Window/Unix/CursorImpl.cpp @@ -32,9 +32,10 @@ #include #include +#include + #include #include -#include namespace sf::priv { diff --git a/src/SFML/Window/Unix/CursorImpl.hpp b/src/SFML/Window/Unix/CursorImpl.hpp index d0369bd1..efde7a74 100644 --- a/src/SFML/Window/Unix/CursorImpl.hpp +++ b/src/SFML/Window/Unix/CursorImpl.hpp @@ -27,10 +27,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include // Prevent conflict with macro None from Xlib +#include + #include namespace sf::priv diff --git a/src/SFML/Window/Unix/Display.cpp b/src/SFML/Window/Unix/Display.cpp index 68a4779b..29da83c9 100644 --- a/src/SFML/Window/Unix/Display.cpp +++ b/src/SFML/Window/Unix/Display.cpp @@ -25,17 +25,19 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + #include -#include -#include #include #include #include +#include +#include + namespace { diff --git a/src/SFML/Window/Unix/GlxContext.cpp b/src/SFML/Window/Unix/GlxContext.cpp index cc18829b..6e91d101 100644 --- a/src/SFML/Window/Unix/GlxContext.cpp +++ b/src/SFML/Window/Unix/GlxContext.cpp @@ -26,11 +26,12 @@ // Headers //////////////////////////////////////////////////////////// -#include #include #include #include +#include + #include #include #include diff --git a/src/SFML/Window/Unix/InputImpl.cpp b/src/SFML/Window/Unix/InputImpl.cpp index 6ed139ba..0c5a4001 100644 --- a/src/SFML/Window/Unix/InputImpl.cpp +++ b/src/SFML/Window/Unix/InputImpl.cpp @@ -25,13 +25,14 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include #include #include #include +#include + #include #include diff --git a/src/SFML/Window/Unix/JoystickImpl.cpp b/src/SFML/Window/Unix/JoystickImpl.cpp index bbea7ad3..67414dca 100644 --- a/src/SFML/Window/Unix/JoystickImpl.cpp +++ b/src/SFML/Window/Unix/JoystickImpl.cpp @@ -25,11 +25,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include -#include -#include +#include + #include #include #include @@ -39,6 +38,9 @@ #include #include +#include +#include + namespace { udev* udevContext = nullptr; diff --git a/src/SFML/Window/Unix/KeyboardImpl.cpp b/src/SFML/Window/Unix/KeyboardImpl.cpp index f4628a3d..abacd9bf 100644 --- a/src/SFML/Window/Unix/KeyboardImpl.cpp +++ b/src/SFML/Window/Unix/KeyboardImpl.cpp @@ -25,22 +25,24 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include -#include #include #include #include #include +#include +#include + #include #include #include -#include #include #include #include +#include + namespace { diff --git a/src/SFML/Window/Unix/VideoModeImpl.cpp b/src/SFML/Window/Unix/VideoModeImpl.cpp index c8393be5..3f6602c1 100644 --- a/src/SFML/Window/Unix/VideoModeImpl.cpp +++ b/src/SFML/Window/Unix/VideoModeImpl.cpp @@ -25,10 +25,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + #include #include diff --git a/src/SFML/Window/Unix/WindowImplX11.cpp b/src/SFML/Window/Unix/WindowImplX11.cpp index 0f3666ae..527cfd46 100644 --- a/src/SFML/Window/Unix/WindowImplX11.cpp +++ b/src/SFML/Window/Unix/WindowImplX11.cpp @@ -26,17 +26,18 @@ // Headers //////////////////////////////////////////////////////////// -#include -#include -#include -#include -#include #include #include #include #include #include +#include +#include +#include +#include +#include + #include #undef min // Defined by `Xlibint.h`, conflicts with standard headers #undef max // Defined by `Xlibint.h`, conflicts with standard headers @@ -48,8 +49,6 @@ #include #include -#include -#include #include #include #include @@ -61,6 +60,9 @@ #include #include +#include +#include + #ifdef SFML_OPENGL_ES #include using ContextType = sf::priv::EglContext; diff --git a/src/SFML/Window/Win32/ClipboardImpl.cpp b/src/SFML/Window/Win32/ClipboardImpl.cpp index 373a9e87..4faac36b 100644 --- a/src/SFML/Window/Win32/ClipboardImpl.cpp +++ b/src/SFML/Window/Win32/ClipboardImpl.cpp @@ -25,10 +25,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// +#include + #include #include #include -#include #include diff --git a/src/SFML/Window/Win32/CursorImpl.cpp b/src/SFML/Window/Win32/CursorImpl.cpp index f4a1ef40..b6900f40 100644 --- a/src/SFML/Window/Win32/CursorImpl.cpp +++ b/src/SFML/Window/Win32/CursorImpl.cpp @@ -25,13 +25,15 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include -#include #include -#include +#include +#include + #include +#include + namespace sf::priv { diff --git a/src/SFML/Window/Win32/CursorImpl.hpp b/src/SFML/Window/Win32/CursorImpl.hpp index 660c6b84..09e81245 100644 --- a/src/SFML/Window/Win32/CursorImpl.hpp +++ b/src/SFML/Window/Win32/CursorImpl.hpp @@ -27,9 +27,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + namespace sf::priv { //////////////////////////////////////////////////////////// diff --git a/src/SFML/Window/Win32/InputImpl.cpp b/src/SFML/Window/Win32/InputImpl.cpp index 5ce16e28..32a9a21f 100644 --- a/src/SFML/Window/Win32/InputImpl.cpp +++ b/src/SFML/Window/Win32/InputImpl.cpp @@ -25,11 +25,12 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include -#include #include #include +#include +#include + namespace sf::priv { //////////////////////////////////////////////////////////// diff --git a/src/SFML/Window/Win32/JoystickImpl.cpp b/src/SFML/Window/Win32/JoystickImpl.cpp index 9cfa2f33..704565d2 100644 --- a/src/SFML/Window/Win32/JoystickImpl.cpp +++ b/src/SFML/Window/Win32/JoystickImpl.cpp @@ -25,15 +25,14 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// +#include + #include #include #include #include -#include #include -#include -#include #include #include #include @@ -42,6 +41,9 @@ #include #include +#include +#include + //////////////////////////////////////////////////////////// // DirectInput diff --git a/src/SFML/Window/Win32/JoystickImpl.hpp b/src/SFML/Window/Win32/JoystickImpl.hpp index 08200a8e..a3d01ebd 100644 --- a/src/SFML/Window/Win32/JoystickImpl.hpp +++ b/src/SFML/Window/Win32/JoystickImpl.hpp @@ -27,10 +27,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + #include #include diff --git a/src/SFML/Window/Win32/VideoModeImpl.cpp b/src/SFML/Window/Win32/VideoModeImpl.cpp index ce0124c5..318f2cf8 100644 --- a/src/SFML/Window/Win32/VideoModeImpl.cpp +++ b/src/SFML/Window/Win32/VideoModeImpl.cpp @@ -25,9 +25,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + #include diff --git a/src/SFML/Window/Win32/VulkanImplWin32.cpp b/src/SFML/Window/Win32/VulkanImplWin32.cpp index d0050a6b..4f9c9ddb 100644 --- a/src/SFML/Window/Win32/VulkanImplWin32.cpp +++ b/src/SFML/Window/Win32/VulkanImplWin32.cpp @@ -25,9 +25,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + #include #include #define VK_USE_PLATFORM_WIN32_KHR diff --git a/src/SFML/Window/Win32/WglContext.cpp b/src/SFML/Window/Win32/WglContext.cpp index 57618553..da0a7edf 100644 --- a/src/SFML/Window/Win32/WglContext.cpp +++ b/src/SFML/Window/Win32/WglContext.cpp @@ -25,10 +25,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + #include #include #include diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index c0ce5f05..f077c15d 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -25,13 +25,14 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include -#include -#include #include #include #include +#include +#include +#include + #include // dbt.h is lowercase here, as a cross-compile on linux with mingw-w64 // expects lowercase, and a native compile on windows, whether via msvc diff --git a/src/SFML/Window/Win32/WindowImplWin32.hpp b/src/SFML/Window/Win32/WindowImplWin32.hpp index 66cc37e6..d46aba8e 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.hpp +++ b/src/SFML/Window/Win32/WindowImplWin32.hpp @@ -27,10 +27,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + namespace sf { diff --git a/src/SFML/Window/Window.cpp b/src/SFML/Window/Window.cpp index d7641ec6..1ca04545 100644 --- a/src/SFML/Window/Window.cpp +++ b/src/SFML/Window/Window.cpp @@ -25,12 +25,13 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include -#include #include #include #include +#include +#include + #include diff --git a/src/SFML/Window/WindowBase.cpp b/src/SFML/Window/WindowBase.cpp index f60736af..7c969a5f 100644 --- a/src/SFML/Window/WindowBase.cpp +++ b/src/SFML/Window/WindowBase.cpp @@ -25,11 +25,12 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include #include +#include + #include diff --git a/src/SFML/Window/WindowImpl.cpp b/src/SFML/Window/WindowImpl.cpp index 6db218ba..7c9a17fd 100644 --- a/src/SFML/Window/WindowImpl.cpp +++ b/src/SFML/Window/WindowImpl.cpp @@ -25,18 +25,20 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include -#include #include #include #include #include #include +#include +#include + #include -#include #include +#include + #if defined(SFML_SYSTEM_WINDOWS) #include diff --git a/src/SFML/Window/iOS/ClipboardImpl.mm b/src/SFML/Window/iOS/ClipboardImpl.mm index b3b8aab4..c3f9d261 100644 --- a/src/SFML/Window/iOS/ClipboardImpl.mm +++ b/src/SFML/Window/iOS/ClipboardImpl.mm @@ -25,9 +25,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + #import namespace sf::priv diff --git a/src/SFML/Window/iOS/CursorImpl.hpp b/src/SFML/Window/iOS/CursorImpl.hpp index 4f6051a4..9444a473 100644 --- a/src/SFML/Window/iOS/CursorImpl.hpp +++ b/src/SFML/Window/iOS/CursorImpl.hpp @@ -27,9 +27,10 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include +#include + namespace sf::priv { diff --git a/src/SFML/Window/iOS/EaglContext.hpp b/src/SFML/Window/iOS/EaglContext.hpp index 159c78d7..8a0fab14 100644 --- a/src/SFML/Window/iOS/EaglContext.hpp +++ b/src/SFML/Window/iOS/EaglContext.hpp @@ -27,11 +27,12 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include -#include #include #include +#include +#include + #include #pragma GCC diagnostic push diff --git a/src/SFML/Window/iOS/EaglContext.mm b/src/SFML/Window/iOS/EaglContext.mm index 8f7a8b4d..a9b058f9 100644 --- a/src/SFML/Window/iOS/EaglContext.mm +++ b/src/SFML/Window/iOS/EaglContext.mm @@ -25,13 +25,14 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include -#include -#include #include #include #include +#include +#include +#include + #include #include #include diff --git a/src/SFML/Window/iOS/InputImpl.mm b/src/SFML/Window/iOS/InputImpl.mm index c722b582..5886c62b 100644 --- a/src/SFML/Window/iOS/InputImpl.mm +++ b/src/SFML/Window/iOS/InputImpl.mm @@ -25,12 +25,13 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include #include #include +#include + namespace sf::priv { diff --git a/src/SFML/Window/iOS/SFAppDelegate.hpp b/src/SFML/Window/iOS/SFAppDelegate.hpp index 8b08ad60..c3b73341 100644 --- a/src/SFML/Window/iOS/SFAppDelegate.hpp +++ b/src/SFML/Window/iOS/SFAppDelegate.hpp @@ -29,9 +29,10 @@ //////////////////////////////////////////////////////////// #include -#include #include +#include + //////////////////////////////////////////////////////////// /// \brief Our custom application delegate diff --git a/src/SFML/Window/iOS/SFView.mm b/src/SFML/Window/iOS/SFView.mm index f8d4dc7d..71ee667f 100644 --- a/src/SFML/Window/iOS/SFView.mm +++ b/src/SFML/Window/iOS/SFView.mm @@ -25,11 +25,13 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + #include + #include #pragma GCC diagnostic ignored "-Wdeprecated-declarations" diff --git a/src/SFML/Window/iOS/SensorImpl.mm b/src/SFML/Window/iOS/SensorImpl.mm index 91b59b69..463eb4fb 100644 --- a/src/SFML/Window/iOS/SensorImpl.mm +++ b/src/SFML/Window/iOS/SensorImpl.mm @@ -25,10 +25,11 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include +#include + namespace { diff --git a/src/SFML/Window/iOS/WindowImplUIKit.mm b/src/SFML/Window/iOS/WindowImplUIKit.mm index 9152bc22..30d53962 100644 --- a/src/SFML/Window/iOS/WindowImplUIKit.mm +++ b/src/SFML/Window/iOS/WindowImplUIKit.mm @@ -25,13 +25,14 @@ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// -#include #include #include #include #include #include +#include + #include #pragma GCC diagnostic ignored "-Wdeprecated-declarations" diff --git a/test/Graphics/Rect.test.cpp b/test/Graphics/Rect.test.cpp index 5daeb529..b2cfaacd 100644 --- a/test/Graphics/Rect.test.cpp +++ b/test/Graphics/Rect.test.cpp @@ -1,4 +1,5 @@ #include + #include #include diff --git a/test/Graphics/RenderWindow.test.cpp b/test/Graphics/RenderWindow.test.cpp index 1bf285f2..8a771a80 100644 --- a/test/Graphics/RenderWindow.test.cpp +++ b/test/Graphics/RenderWindow.test.cpp @@ -3,9 +3,11 @@ // Other 1st party headers #include #include -#include + #include +#include + #include #include diff --git a/test/Graphics/Transform.test.cpp b/test/Graphics/Transform.test.cpp index 9f107cbf..cb8ec960 100644 --- a/test/Graphics/Transform.test.cpp +++ b/test/Graphics/Transform.test.cpp @@ -1,13 +1,15 @@ #include + #include #include #include -#include #include #include +#include + static_assert(std::is_copy_constructible_v); static_assert(std::is_copy_assignable_v); static_assert(std::is_nothrow_move_constructible_v); diff --git a/test/System/FileInputStream.test.cpp b/test/System/FileInputStream.test.cpp index 6b2a7d69..d7ff9a15 100644 --- a/test/System/FileInputStream.test.cpp +++ b/test/System/FileInputStream.test.cpp @@ -2,13 +2,14 @@ #include -#include #include #include #include #include #include +#include + static_assert(!std::is_copy_constructible_v); static_assert(!std::is_copy_assignable_v); static_assert(std::is_nothrow_move_constructible_v); diff --git a/test/System/String.test.cpp b/test/System/String.test.cpp index a0f96661..6365aa68 100644 --- a/test/System/String.test.cpp +++ b/test/System/String.test.cpp @@ -4,11 +4,12 @@ #include #include -#include #include #include #include +#include + static_assert(std::is_copy_constructible_v); static_assert(std::is_copy_assignable_v); static_assert(std::is_nothrow_move_constructible_v); diff --git a/test/System/Vector2.test.cpp b/test/System/Vector2.test.cpp index 489a02e7..89fd7574 100644 --- a/test/System/Vector2.test.cpp +++ b/test/System/Vector2.test.cpp @@ -3,9 +3,10 @@ #include #include -#include #include +#include + using namespace sf::Literals; // Use sf::Vector2i for tests (except for float vector algebra). diff --git a/test/Window/Window.test.cpp b/test/Window/Window.test.cpp index 13c5815e..24fa215d 100644 --- a/test/Window/Window.test.cpp +++ b/test/Window/Window.test.cpp @@ -1,9 +1,10 @@ #include // Other 1st party headers -#include #include +#include + #include #include diff --git a/test/Window/WindowBase.test.cpp b/test/Window/WindowBase.test.cpp index 8038b56f..5fe52a4e 100644 --- a/test/Window/WindowBase.test.cpp +++ b/test/Window/WindowBase.test.cpp @@ -1,10 +1,11 @@ #include // Other 1st party headers -#include #include #include +#include + #include #include diff --git a/test/install/Install.cpp b/test/install/Install.cpp index 09cf7082..98c5caf8 100644 --- a/test/install/Install.cpp +++ b/test/install/Install.cpp @@ -1,5 +1,7 @@ -#include #include + +#include + #include // Instantiate some types from each module to test for linker issues. This program is not meant be ran. diff --git a/tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp b/tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp index 15ce66a1..c2b32be9 100644 --- a/tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp +++ b/tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp @@ -14,9 +14,10 @@ // function `resourcePath()` from ResourcePath.hpp // -#include #include +#include + // Here is a small helper for you! Have a look. #include "ResourcePath.hpp" diff --git a/tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp b/tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp index 33b329e1..1ad9be98 100644 --- a/tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp +++ b/tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp @@ -15,9 +15,10 @@ // - Click OK. // -#include #include +#include + int main() { // Create the main window