Reorder includes hierarchically

This commit is contained in:
vittorioromeo 2023-04-24 14:13:52 +02:00 committed by Lukas Dürrenberger
parent 97c00d42ad
commit cbfa9cbb65
187 changed files with 448 additions and 207 deletions

View File

@ -96,15 +96,27 @@ MaxEmptyLinesToKeep: 2
IncludeBlocks: Regroup
IncludeCategories:
- Priority: 1
Regex: '^<SFML\/Config.hpp>$'
Regex: '^\"(.+)\"$'
- Priority: 2
Regex: '^<SFML\/(.+)\/Export.hpp>$'
Regex: '^<SFML\/Config.hpp>$'
- Priority: 3
Regex: '^<SFML\/'
Regex: '^<SFML\/(.+)\/Export.hpp>$'
- Priority: 4
Regex: '^<(glad|gl|X11|jni|android|stb_|GLES2|vorbis|doctest)'
Regex: '^<SFML\/Graphics'
- Priority: 5
Regex: '^<(.+)>$'
Regex: '^<SFML\/Audio'
- Priority: 6
Regex: '^<SFML\/Network'
- Priority: 7
Regex: '^<SFML\/Window'
- Priority: 8
Regex: '^<SFML\/System'
- Priority: 9
Regex: '^<(glad|gl|X11|jni|android|stb_|GLES2|vorbis|doctest)'
- Priority: 10
Regex: '^<([^c](.+)|coroutine|charconv|chrono|complex|concepts|condition_variable)>$'
- Priority: 11
Regex: '^<c(.+)>$'
SortIncludes: true
SortUsingDeclarations: true

View File

@ -9,9 +9,10 @@
#include <gl.h>
#include <array>
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <iostream>
////////////////////////////////////////////////////////////
/// Initialize OpenGL states into the specified view

View File

@ -1,9 +1,13 @@
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <SFML/Network.hpp>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
// 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

View File

@ -23,10 +23,10 @@
//
////////////////////////////////////////////////////////////
#include <SFML/System/Utf.hpp>
#import "NSString+stdstring.h"
#include <SFML/System/Utf.hpp>
@implementation NSString (NSString_stdstring)
+ (id)stringWithstdstring:(const std::string&)string

View File

@ -9,9 +9,6 @@
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iostream>
#include <mutex>
@ -19,6 +16,10 @@
#include <thread>
#include <vector>
#include <cmath>
#include <cstdlib>
#include <cstring>
namespace
{

View File

@ -5,9 +5,10 @@
#include <SFML/Graphics.hpp>
#include <array>
#include <cstdlib>
#include <iostream>
#include <cstdlib>
#define GLAD_GL_IMPLEMENTATION
#include <gl.h>

View File

@ -5,10 +5,11 @@
////////////////////////////////////////////////////////////
#include <SFML/Graphics.hpp>
#include <cassert>
#include <string>
#include <utility>
#include <cassert>
////////////////////////////////////////////////////////////
// Base class for effects

View File

@ -2,11 +2,11 @@
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include "Effect.hpp"
#include <array>
#include <random>
#include "Effect.hpp"
namespace
{

View File

@ -4,9 +4,10 @@
////////////////////////////////////////////////////////////
#include <SFML/Audio.hpp>
#include <cstdlib>
#include <iostream>
#include <cstdlib>
////////////////////////////////////////////////////////////
/// Entry point of application

View File

@ -2,9 +2,10 @@
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <random>
#ifdef SFML_SYSTEM_IOS

View File

@ -3,6 +3,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio.hpp>
#include <SFML/Network.hpp>
#include <iostream>

View File

@ -3,13 +3,15 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio.hpp>
#include <SFML/Network.hpp>
#include <cstring>
#include <iostream>
#include <iterator>
#include <mutex>
#include <cstring>
const std::uint8_t serverAudioData = 1;
const std::uint8_t serverEndOfStream = 2;

View File

@ -7,16 +7,18 @@
// Include graphics because we use sf::Image for loading images
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <algorithm>
#include <array>
#include <cmath>
#include <cstring>
#include <iostream>
#include <limits>
#include <vector>
#include <cmath>
#include <cstring>
////////////////////////////////////////////////////////////
// Helper functions

View File

@ -6,9 +6,10 @@
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <cmath>
#include <windows.h>
#include <cmath>
HWND button;

View File

@ -13,9 +13,10 @@
#endif
#include <array>
#include <cstdlib>
#include <iostream>
#include <cstdlib>
////////////////////////////////////////////////////////////
/// Entry point of application
///

View File

@ -41,6 +41,7 @@
#include <SFML/Audio/SoundRecorder.hpp>
#include <SFML/Audio/SoundSource.hpp>
#include <SFML/Audio/SoundStream.hpp>
#include <SFML/System.hpp>

View File

@ -31,10 +31,11 @@
#include <SFML/Audio/SoundFileReader.hpp>
#include <cstddef>
#include <filesystem>
#include <memory>
#include <cstddef>
namespace sf
{

View File

@ -30,6 +30,7 @@
#include <SFML/Audio/Export.hpp>
#include <SFML/Audio/AlResource.hpp>
#include <SFML/System/Time.hpp>
#include <filesystem>

View File

@ -30,6 +30,7 @@
#include <SFML/Audio/Export.hpp>
#include <SFML/Audio/AlResource.hpp>
#include <SFML/System/Time.hpp>
#include <string>

View File

@ -30,6 +30,7 @@
#include <SFML/Audio/Export.hpp>
#include <SFML/Audio/AlResource.hpp>
#include <SFML/System/Vector3.hpp>

View File

@ -30,12 +30,14 @@
#include <SFML/Audio/Export.hpp>
#include <SFML/Audio/SoundSource.hpp>
#include <SFML/System/Time.hpp>
#include <cstdlib>
#include <mutex>
#include <thread>
#include <cstdlib>
namespace sf
{

View File

@ -54,6 +54,7 @@
#include <SFML/Graphics/VertexArray.hpp>
#include <SFML/Graphics/VertexBuffer.hpp>
#include <SFML/Graphics/View.hpp>
#include <SFML/Window.hpp>

View File

@ -29,6 +29,7 @@
////////////////////////////////////////////////////////////
#include <SFML/Graphics/Color.hpp>
#include <SFML/Graphics/Transform.hpp>
#include <SFML/System/Vector2.hpp>
#include <SFML/System/Vector3.hpp>

View File

@ -31,6 +31,7 @@
#include <SFML/Graphics/RenderTarget.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <SFML/Window/ContextSettings.hpp>
#include <memory>

View File

@ -30,6 +30,7 @@
#include <SFML/Graphics/Export.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
#include <SFML/Window/Window.hpp>

View File

@ -30,9 +30,11 @@
#include <SFML/Graphics/Export.hpp>
#include <SFML/Graphics/Glsl.hpp>
#include <SFML/Window/GlResource.hpp>
#include <SFML/System/Vector2.hpp>
#include <SFML/System/Vector3.hpp>
#include <SFML/Window/GlResource.hpp>
#include <filesystem>
#include <string>

View File

@ -32,6 +32,7 @@
#include <SFML/Graphics/Drawable.hpp>
#include <SFML/Graphics/Transformable.hpp>
#include <SFML/Graphics/VertexArray.hpp>
#include <SFML/System/Vector2.hpp>

View File

@ -33,6 +33,7 @@
#include <SFML/Graphics/Rect.hpp>
#include <SFML/Graphics/Transformable.hpp>
#include <SFML/Graphics/VertexArray.hpp>
#include <SFML/System/String.hpp>
#include <vector>

View File

@ -30,6 +30,7 @@
#include <SFML/Graphics/Export.hpp>
#include <SFML/Graphics/Rect.hpp>
#include <SFML/Window/GlResource.hpp>
#include <filesystem>

View File

@ -30,6 +30,7 @@
#include <SFML/Graphics/Export.hpp>
#include <SFML/Graphics/Rect.hpp>
#include <SFML/System/Vector2.hpp>

View File

@ -30,6 +30,7 @@
#include <SFML/Graphics/Export.hpp>
#include <SFML/Graphics/Transform.hpp>
#include <SFML/System/Angle.hpp>

View File

@ -28,6 +28,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics/Color.hpp>
#include <SFML/System/Vector2.hpp>

View File

@ -31,6 +31,7 @@
#include <SFML/Graphics/Drawable.hpp>
#include <SFML/Graphics/PrimitiveType.hpp>
#include <SFML/Window/GlResource.hpp>
#include <cstddef>

View File

@ -31,6 +31,7 @@
#include <SFML/Graphics/Rect.hpp>
#include <SFML/Graphics/Transform.hpp>
#include <SFML/System/Angle.hpp>
#include <SFML/System/Vector2.hpp>

View File

@ -38,6 +38,7 @@
#include <SFML/Network/TcpListener.hpp>
#include <SFML/Network/TcpSocket.hpp>
#include <SFML/Network/UdpSocket.hpp>
#include <SFML/System.hpp>

View File

@ -30,6 +30,7 @@
#include <SFML/Network/Export.hpp>
#include <SFML/Network/TcpSocket.hpp>
#include <SFML/System/Time.hpp>
#include <filesystem>

View File

@ -31,6 +31,7 @@
#include <SFML/Network/IpAddress.hpp>
#include <SFML/Network/TcpSocket.hpp>
#include <SFML/System/Time.hpp>
#include <map>

View File

@ -29,10 +29,11 @@
////////////////////////////////////////////////////////////
#include <SFML/Network/Export.hpp>
#include <cstddef>
#include <string>
#include <vector>
#include <cstddef>
namespace sf
{

View File

@ -30,6 +30,7 @@
#include <SFML/Network/Export.hpp>
#include <SFML/Network/Socket.hpp>
#include <SFML/System/Time.hpp>
#include <optional>

View File

@ -33,10 +33,11 @@
#include <SFML/System/InputStream.hpp>
#include <cstdio>
#include <filesystem>
#include <memory>
#include <cstdio>
#ifdef SFML_SYSTEM_ANDROID
namespace sf::priv
{

View File

@ -30,6 +30,7 @@
#include <SFML/System/Export.hpp>
#include <chrono>
#include <cstdint>

View File

@ -29,9 +29,10 @@
////////////////////////////////////////////////////////////
#include <SFML/Config.hpp>
#include <cstdlib>
#include <locale>
#include <cstdlib>
namespace sf
{

View File

@ -28,7 +28,6 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/System.hpp>
#include <SFML/Window/Clipboard.hpp>
#include <SFML/Window/Context.hpp>
#include <SFML/Window/ContextSettings.hpp>
@ -44,6 +43,8 @@
#include <SFML/Window/WindowHandle.hpp>
#include <SFML/Window/WindowStyle.hpp>
#include <SFML/System.hpp>
////////////////////////////////////////////////////////////
/// \defgroup window Window module

View File

@ -29,12 +29,14 @@
////////////////////////////////////////////////////////////
#include <SFML/Window/Export.hpp>
#include <SFML/System/Vector2.hpp>
#include <SFML/Window/GlResource.hpp>
#include <cstdint>
#include <SFML/System/Vector2.hpp>
#include <memory>
#include <cstdint>
namespace sf
{

View File

@ -31,9 +31,10 @@
#include <SFML/System/Vector2.hpp>
#include <cstdint>
#include <memory>
#include <cstdint>
namespace sf
{
namespace priv

View File

@ -29,9 +29,10 @@
////////////////////////////////////////////////////////////
#include <SFML/Window/Export.hpp>
#include <cstdint>
#include <vector>
#include <cstdint>
using VkInstance = struct VkInstance_T*;

View File

@ -27,12 +27,13 @@
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/System/Clock.hpp>
#include <SFML/System/Time.hpp>
#include <SFML/Window/ContextSettings.hpp>
#include <SFML/Window/GlResource.hpp>
#include <SFML/Window/WindowBase.hpp>
#include <SFML/System/Clock.hpp>
#include <SFML/System/Time.hpp>
#include <memory>

View File

@ -29,11 +29,12 @@
////////////////////////////////////////////////////////////
#include <SFML/Window/Export.hpp>
#include <SFML/System/Vector2.hpp>
#include <SFML/Window/Vulkan.hpp>
#include <SFML/Window/WindowHandle.hpp>
#include <SFML/Window/WindowStyle.hpp>
#include <SFML/System/Vector2.hpp>
#include <memory>

View File

@ -26,6 +26,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio/ALCheck.hpp>
#include <SFML/System/Err.hpp>
#include <ostream>

View File

@ -28,6 +28,7 @@
#include <SFML/Audio/ALCheck.hpp>
#include <SFML/Audio/AudioDevice.hpp>
#include <SFML/Audio/Listener.hpp>
#include <SFML/System/Err.hpp>
#include <optional>

View File

@ -28,6 +28,7 @@
#include <SFML/Audio/InputSoundFile.hpp>
#include <SFML/Audio/SoundFileFactory.hpp>
#include <SFML/Audio/SoundFileReader.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/FileInputStream.hpp>
#include <SFML/System/InputStream.hpp>

View File

@ -27,6 +27,7 @@
////////////////////////////////////////////////////////////
#include <SFML/Audio/ALCheck.hpp>
#include <SFML/Audio/Music.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/Time.hpp>

View File

@ -31,6 +31,7 @@
#include <SFML/Audio/OutputSoundFile.hpp>
#include <SFML/Audio/Sound.hpp>
#include <SFML/Audio/SoundBuffer.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/Time.hpp>

View File

@ -26,6 +26,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio/SoundBufferRecorder.hpp>
#include <SFML/System/Err.hpp>
#include <algorithm>

View File

@ -33,6 +33,7 @@
#include <SFML/Audio/SoundFileWriterFlac.hpp>
#include <SFML/Audio/SoundFileWriterOgg.hpp>
#include <SFML/Audio/SoundFileWriterWav.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/FileInputStream.hpp>
#include <SFML/System/MemoryInputStream.hpp>

View File

@ -26,12 +26,14 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio/SoundFileReaderFlac.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/InputStream.hpp>
#include <cassert>
#include <ostream>
#include <cassert>
namespace
{

View File

@ -51,9 +51,11 @@
#undef MINIMP3_NO_STDIO
#include <SFML/Audio/SoundFileReaderMp3.hpp>
#include <SFML/System/InputStream.hpp>
#include <algorithm>
#include <cstring>

View File

@ -26,12 +26,14 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio/SoundFileReaderOgg.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/MemoryInputStream.hpp>
#include <ostream>
#include <cassert>
#include <cctype>
#include <ostream>
namespace

View File

@ -26,14 +26,16 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio/SoundFileReaderWav.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/InputStream.hpp>
#include <algorithm>
#include <ostream>
#include <cassert>
#include <cctype>
#include <cstring>
#include <ostream>
namespace

View File

@ -26,13 +26,15 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio/SoundFileWriterFlac.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/Utils.hpp>
#include <algorithm>
#include <ostream>
#include <cassert>
#include <cctype>
#include <ostream>
namespace sf::priv

View File

@ -26,15 +26,17 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio/SoundFileWriterOgg.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/Utils.hpp>
#include <algorithm>
#include <cassert>
#include <cctype>
#include <ostream>
#include <random>
#include <cassert>
#include <cctype>
namespace sf::priv
{

View File

@ -26,12 +26,14 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio/SoundFileWriterWav.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/Utils.hpp>
#include <cassert>
#include <ostream>
#include <cassert>
namespace
{

View File

@ -28,12 +28,14 @@
#include <SFML/Audio/ALCheck.hpp>
#include <SFML/Audio/AudioDevice.hpp>
#include <SFML/Audio/SoundRecorder.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/Sleep.hpp>
#include <ostream>
#include <cassert>
#include <cstring>
#include <ostream>
#ifdef _MSC_VER
#pragma warning(disable : 4355) // 'this' used in base member initializer list

View File

@ -28,13 +28,15 @@
#include <SFML/Audio/ALCheck.hpp>
#include <SFML/Audio/AudioDevice.hpp>
#include <SFML/Audio/SoundStream.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/Sleep.hpp>
#include <cassert>
#include <mutex>
#include <ostream>
#include <cassert>
#ifdef _MSC_VER
#pragma warning(disable : 4355) // 'this' used in base member initializer list
#endif

View File

@ -41,11 +41,12 @@
#include FT_OUTLINE_H
#include FT_BITMAP_H
#include FT_STROKER_H
#include <ostream>
#include <type_traits>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <ostream>
#include <type_traits>
namespace

View File

@ -26,6 +26,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics/GLCheck.hpp>
#include <SFML/System/Err.hpp>
#include <ostream>

View File

@ -26,9 +26,11 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics/GLExtensions.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/Window/Context.hpp>
#include <SFML/System/Err.hpp>
// 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

View File

@ -27,14 +27,16 @@
////////////////////////////////////////////////////////////
#include <SFML/Graphics/Image.hpp>
#include <SFML/Graphics/ImageLoader.hpp>
#include <SFML/System/Err.hpp>
#ifdef SFML_SYSTEM_ANDROID
#include <SFML/System/Android/ResourceStream.hpp>
#endif
#include <algorithm>
#include <cstring>
#include <ostream>
#include <cstring>
namespace sf
{

View File

@ -26,6 +26,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics/ImageLoader.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/InputStream.hpp>
#include <SFML/System/Utils.hpp>

View File

@ -32,17 +32,20 @@
#include <SFML/Graphics/Texture.hpp>
#include <SFML/Graphics/VertexArray.hpp>
#include <SFML/Graphics/VertexBuffer.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/Window/Context.hpp>
#include <SFML/System/Err.hpp>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iostream>
#include <mutex>
#include <ostream>
#include <unordered_map>
#include <cassert>
#include <cmath>
namespace
{

View File

@ -28,6 +28,7 @@
#include <SFML/Graphics/RenderTexture.hpp>
#include <SFML/Graphics/RenderTextureImplDefault.hpp>
#include <SFML/Graphics/RenderTextureImplFBO.hpp>
#include <SFML/System/Err.hpp>
#include <memory>

View File

@ -28,6 +28,7 @@
#include <SFML/Graphics/GLCheck.hpp>
#include <SFML/Graphics/RenderTextureImplDefault.hpp>
#include <SFML/Graphics/TextureSaver.hpp>
#include <SFML/Window/Context.hpp>
#include <SFML/Window/ContextSettings.hpp>

View File

@ -28,6 +28,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics/RenderTextureImpl.hpp>
#include <SFML/Window/GlResource.hpp>
#include <memory>

View File

@ -28,10 +28,12 @@
#include <SFML/Graphics/GLCheck.hpp>
#include <SFML/Graphics/RenderTextureImplFBO.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/Window/Context.hpp>
#include <SFML/Window/ContextSettings.hpp>
#include <SFML/System/Err.hpp>
#include <mutex>
#include <ostream>
#include <set>

View File

@ -28,6 +28,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics/RenderTextureImpl.hpp>
#include <SFML/Window/GlResource.hpp>
#include <memory>

View File

@ -30,6 +30,7 @@
#include <SFML/Graphics/RenderTextureImplFBO.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <SFML/Window/VideoMode.hpp>

View File

@ -31,10 +31,12 @@
#include <SFML/Graphics/Shader.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <SFML/Graphics/Transform.hpp>
#include <SFML/Window/Context.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/InputStream.hpp>
#include <SFML/System/Utils.hpp>
#include <SFML/Window/Context.hpp>
#include <fstream>
#include <iomanip>

View File

@ -31,9 +31,10 @@
#include <SFML/Graphics/Texture.hpp>
#include <algorithm>
#include <cmath>
#include <utility>
#include <cmath>
namespace
{

View File

@ -29,16 +29,19 @@
#include <SFML/Graphics/Image.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <SFML/Graphics/TextureSaver.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/Window/Context.hpp>
#include <SFML/Window/Window.hpp>
#include <SFML/System/Err.hpp>
#include <atomic>
#include <ostream>
#include <utility>
#include <cassert>
#include <climits>
#include <cstring>
#include <ostream>
#include <utility>
namespace

View File

@ -26,6 +26,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics/Transform.hpp>
#include <SFML/System/Angle.hpp>
#include <cmath>

View File

@ -29,12 +29,14 @@
#include <SFML/Graphics/RenderTarget.hpp>
#include <SFML/Graphics/Vertex.hpp>
#include <SFML/Graphics/VertexBuffer.hpp>
#include <SFML/System/Err.hpp>
#include <ostream>
#include <utility>
#include <cstddef>
#include <cstring>
#include <ostream>
#include <utility>
namespace
{

View File

@ -46,11 +46,12 @@
#include <android/native_activity.h>
#include <android/window.h>
#include <cassert>
#include <cstring>
#include <mutex>
#include <thread>
#include <cassert>
#include <cstring>
#define SF_GLAD_EGL_IMPLEMENTATION
#include <glad/egl.h>

View File

@ -27,17 +27,19 @@
////////////////////////////////////////////////////////////
#include <SFML/Network/Ftp.hpp>
#include <SFML/Network/IpAddress.hpp>
#include <SFML/System/Err.hpp>
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <fstream>
#include <iterator>
#include <ostream>
#include <sstream>
#include <utility>
#include <cctype>
#include <cstdio>
namespace sf
{

View File

@ -26,6 +26,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Network/Http.hpp>
#include <SFML/System/Err.hpp>
#include <SFML/System/Utils.hpp>

View File

@ -29,11 +29,12 @@
#include <SFML/Network/IpAddress.hpp>
#include <SFML/Network/SocketImpl.hpp>
#include <cstring>
#include <istream>
#include <ostream>
#include <utility>
#include <cstring>
namespace sf
{

View File

@ -27,6 +27,7 @@
////////////////////////////////////////////////////////////
#include <SFML/Network/Packet.hpp>
#include <SFML/Network/SocketImpl.hpp>
#include <SFML/System/String.hpp>
#include <cstring>

View File

@ -27,6 +27,7 @@
////////////////////////////////////////////////////////////
#include <SFML/Network/Socket.hpp>
#include <SFML/Network/SocketImpl.hpp>
#include <SFML/System/Err.hpp>
#include <ostream>

View File

@ -28,6 +28,7 @@
#include <SFML/Network/Socket.hpp>
#include <SFML/Network/SocketImpl.hpp>
#include <SFML/Network/SocketSelector.hpp>
#include <SFML/System/Err.hpp>
#include <algorithm>

View File

@ -28,6 +28,7 @@
#include <SFML/Network/SocketImpl.hpp>
#include <SFML/Network/TcpListener.hpp>
#include <SFML/Network/TcpSocket.hpp>
#include <SFML/System/Err.hpp>
#include <ostream>

View File

@ -29,12 +29,14 @@
#include <SFML/Network/Packet.hpp>
#include <SFML/Network/SocketImpl.hpp>
#include <SFML/Network/TcpSocket.hpp>
#include <SFML/System/Err.hpp>
#include <algorithm>
#include <cstring>
#include <ostream>
#include <cstring>
#ifdef _MSC_VER
#pragma warning(disable : 4127) // "conditional expression is constant" generated by the FD_SET macro
#endif

View File

@ -29,11 +29,13 @@
#include <SFML/Network/Packet.hpp>
#include <SFML/Network/SocketImpl.hpp>
#include <SFML/Network/UdpSocket.hpp>
#include <SFML/System/Err.hpp>
#include <cstddef>
#include <ostream>
#include <cstddef>
namespace sf
{

View File

@ -26,12 +26,14 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Network/Unix/SocketImpl.hpp>
#include <SFML/System/Err.hpp>
#include <fcntl.h>
#include <ostream>
#include <cerrno>
#include <cstring>
#include <fcntl.h>
#include <ostream>
namespace sf::priv

View File

@ -30,7 +30,6 @@
#include <SFML/Network/Socket.hpp>
#include <arpa/inet.h>
#include <cstdint>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
@ -38,6 +37,8 @@
#include <sys/types.h>
#include <unistd.h>
#include <cstdint>
namespace sf::priv
{

View File

@ -28,12 +28,14 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Network/Socket.hpp>
#include <SFML/System/Win32/WindowsHeader.hpp>
#include <cstdint>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <cstdint>
namespace sf::priv
{

View File

@ -45,12 +45,7 @@
#include <SFML/System/Vector2.hpp>
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <filesystem>
#include <iostream>
#include <locale>
@ -61,3 +56,9 @@
#include <string>
#include <unordered_map>
#include <vector>
#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <cstring>

View File

@ -27,10 +27,11 @@
////////////////////////////////////////////////////////////
#include <SFML/System/Err.hpp>
#include <cstdio>
#include <iostream>
#include <streambuf>
#include <cstdio>
namespace
{

View File

@ -29,9 +29,10 @@
#ifdef SFML_SYSTEM_ANDROID
#include <SFML/System/Android/ResourceStream.hpp>
#endif
#include <cstddef>
#include <memory>
#include <cstddef>
namespace sf
{
////////////////////////////////////////////////////////////

View File

@ -28,10 +28,11 @@
#include <SFML/System/String.hpp>
#include <SFML/System/Utf.hpp>
#include <cstring>
#include <iterator>
#include <utility>
#include <cstring>
namespace sf
{

View File

@ -27,11 +27,12 @@
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <cctype>
#include <filesystem>
#include <sstream>
#include <string>
#include <cctype>
namespace sf
{

View File

@ -24,9 +24,10 @@
#include <SFML/System/Vector2.hpp>
#include <type_traits>
#include <cassert>
#include <cmath>
#include <type_traits>
namespace sf

Some files were not shown because too many files have changed in this diff Show More