Fix some includes all over the place

Make include-what-you-use happy with some files in source and fix what
needs to be fixed.

Add markers to precompiled.h header includes to avoid
include-what-you-use wanting them to be removed.

Ref: #8086
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2025-08-12 20:29:24 +02:00
parent 390a2f473e
commit 5b5f678e3f
No known key found for this signature in database
66 changed files with 88 additions and 100 deletions

View file

@ -32,7 +32,6 @@
#include <FCollada.h>
#include <FMath/FMVector3.h>
#include <FUtils/FUString.h>
#include <FUtils/FUtils.h>
#include <algorithm>
#include <cassert>
#include <cstdarg>

View file

@ -31,7 +31,6 @@
#include <cassert>
#include <cmath>
#include <cstring>
#include <iterator>
#include <map>
#include <utility>
#include <vector>

View file

@ -42,8 +42,8 @@
#include <FUtils/Platforms.h>
#include <algorithm>
#include <cassert>
#include <cfloat>
#include <cstring>
#include <float.h>
#include <iterator>
#include <limits>
#include <vector>

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2009 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -15,6 +15,8 @@
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
*/
// IWYU pragma: begin_keep
#ifndef INCLUDED_COLLADA_PRECOMPILED
#define INCLUDED_COLLADA_PRECOMPILED
@ -61,3 +63,5 @@ extern void Log(int severity, const char* fmt, ...);
#undef max
#endif // INCLUDED_COLLADA_PRECOMPILED
// IWYU pragma: end_keep

View file

@ -40,7 +40,7 @@
#include "simulation2/Simulation2.h"
#include "simulation2/components/ICmpPosition.h"
#include "simulation2/components/ICmpRangeManager.h"
#include "simulation2/system/CmpPtr.h"
#include "simulation2/system/Component.h"
#include <algorithm>
#include <cmath>

View file

@ -44,9 +44,8 @@
#include "simulation2/Simulation2.h"
#include "simulation2/components/ICmpRangeManager.h"
#include "simulation2/helpers/Los.h"
#include "simulation2/system/CmpPtr.h"
#include "simulation2/system/Component.h"
#include "simulation2/system/Entity.h"
#include "simulation2/system/SimContext.h"
#include <array>
#include <cstring>

View file

@ -46,7 +46,7 @@
#include "scriptinterface/ScriptInterface.h"
#include "scriptinterface/ScriptRequest.h"
#include "simulation2/helpers/MapEdgeTiles.h"
#include "simulation2/system/ParamNode.h"
#include "simulation2/system/Component.h"
#include <boost/random/linear_congruential.hpp>
#include <cstddef>

View file

@ -21,7 +21,6 @@
#include "graphics/Camera.h"
#include "graphics/Color.h"
#include "graphics/HeightMipmap.h"
#include "graphics/LightEnv.h"
#include "graphics/MapIO.h"
#include "graphics/MiniPatch.h"
@ -45,6 +44,7 @@
#include "renderer/PostprocManager.h"
#include "renderer/SkyManager.h"
#include "renderer/WaterManager.h"
#include "scriptinterface/ScriptInterface.h"
#include "simulation2/Simulation2.h"
#include "simulation2/components/ICmpCinemaManager.h"
#include "simulation2/components/ICmpGarrisonHolder.h"
@ -56,8 +56,7 @@
#include "simulation2/components/ICmpVisual.h"
#include "simulation2/components/ICmpWaterManager.h"
#include "simulation2/helpers/CinemaPath.h"
#include "simulation2/system/CmpPtr.h"
#include "simulation2/system/Components.h"
#include "simulation2/system/Component.h"
#include "simulation2/system/Entity.h"
#include <algorithm>

View file

@ -65,11 +65,8 @@
#include "simulation2/components/ICmpMinimap.h"
#include "simulation2/components/ICmpRangeManager.h"
#include "simulation2/helpers/Position.h"
#include "simulation2/system/CmpPtr.h"
#include "simulation2/system/Components.h"
#include "simulation2/system/Component.h"
#include "simulation2/system/Entity.h"
#include "simulation2/system/ParamNode.h"
#include "simulation2/system/SimContext.h"
#include <algorithm>
#include <array>

View file

@ -37,7 +37,7 @@
#include "renderer/RenderingOptions.h"
#include "simulation2/components/ICmpTerrain.h"
#include "simulation2/components/ICmpWaterManager.h"
#include "simulation2/system/CmpPtr.h"
#include "simulation2/system/Component.h"
#include "simulation2/system/Entity.h"
#include <algorithm>

View file

@ -28,13 +28,12 @@
#include "ps/ConfigDB.h"
#include "ps/Filesystem.h"
#include "ps/Profiler2.h"
#include "ps/XMB/XMBStorage.h"
#include "ps/XML/Xeromyces.h"
#include "scriptinterface/ScriptInterface.h"
#include "simulation2/Simulation2.h"
#include "simulation2/components/ICmpTerrain.h"
#include "simulation2/components/ICmpVisual.h"
#include "simulation2/system/CmpPtr.h"
#include "simulation2/system/Components.h"
#include "simulation2/system/Component.h"
#include "simulation2/system/Entity.h"
#include <cstddef>

View file

@ -34,7 +34,6 @@
#include "simulation2/helpers/Position.h"
#include "simulation2/system/Entity.h"
#include <js/PropertyAndElement.h>
#include <js/RootingAPI.h>
#include <js/TypeDecls.h>
#include <js/Value.h>

View file

@ -39,10 +39,8 @@
#include "scriptinterface/ModuleLoader.h"
#include "scriptinterface/StructuredClone.h"
#include <iterator>
#include <js/RootingAPI.h>
#include <js/TypeDecls.h>
#include <js/Value.h>
#include <map>
#include <memory>
#include <optional>
@ -50,6 +48,7 @@
#include <string_view>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
class CCanvas2D;
@ -65,6 +64,7 @@ class ScriptRequest;
class XMBData;
class XMBElement;
namespace JS { class HandleValueArray; }
namespace JS { class Value; }
namespace js { class BaseProxyHandler; }
struct SDL_Event_;
struct SGUIImageEffects;

View file

@ -22,6 +22,7 @@
#include "gui/CGUI.h"
#include "gui/SGUIMessage.h"
#include "lib/debug.h"
#include "lib/file/vfs/vfs_path.h"
#include "lib/file/vfs/vfs_util.h"
#include "lib/utf8.h"
#include "ps/CLogger.h"
@ -31,6 +32,7 @@
#include "ps/Profiler2.h"
#include "ps/VideoMode.h"
#include "ps/XMB/XMBData.h"
#include "ps/XMB/XMBStorage.h"
#include "ps/XML/Xeromyces.h"
#include "ps/containers/StaticVector.h"
#include "scriptinterface/FunctionWrapper.h"
@ -40,14 +42,13 @@
#include "scriptinterface/ScriptInterface.h"
#include "scriptinterface/ScriptRequest.h"
#include "scriptinterface/StructuredClone.h"
#include "simulation2/system/ParamNode.h"
#include "simulation2/system/Component.h"
#include <algorithm>
#include <iterator>
#include <js/Equality.h>
#include <js/GCVector.h>
#include <js/Promise.h>
#include <js/PropertyAndElement.h>
#include <js/RootingAPI.h>
#include <js/String.h>
#include <js/Symbol.h>

View file

@ -19,12 +19,12 @@
#define INCLUDED_GUIMANAGER
#include "lib/code_annotation.h"
#include "lib/file/vfs/vfs_path.h"
#include "lib/input.h"
#include "lib/path.h"
#include "lib/status.h"
#include "ps/CStr.h"
#include "ps/TemplateLoader.h"
#include "scriptinterface/ScriptInterface.h"
#include "scriptinterface/StructuredClone.h"
#include <cstddef>
@ -39,7 +39,6 @@ class CCanvas2D;
class CGUI;
class CParamNode;
class ScriptContext;
class ScriptInterface;
namespace JS { class HandleValueArray; }
namespace JS { class Value; }
namespace PS { template <typename T, size_t N> class StaticVector; }

View file

@ -27,13 +27,11 @@
#include "gui/SettingTypes/CGUISize.h"
#include "i18n/L10n.h"
#include "lib/file/vfs/vfs_path.h"
#include "lib/path.h"
#include "lib/utf8.h"
#include "maths/Vector2D.h"
#include "ps/CLogger.h"
#include "ps/CStr.h"
#include "renderer/Renderer.h"
#include "renderer/backend/Sampler.h"
#include <string>
#include <utility>

View file

@ -36,7 +36,6 @@
#include "soundmanager/ISoundManager.h"
#include <algorithm>
#include <iterator>
#include <js/CallAndConstruct.h>
#include <js/ComparisonOperators.h>
#include <js/CompilationAndEvaluation.h>

View file

@ -32,6 +32,7 @@
#include <SDL_events.h>
#include <SDL_keycode.h>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <vector>

View file

@ -47,13 +47,14 @@
#include "scriptinterface/ScriptConversions.h"
#include "scriptinterface/ScriptRequest.h"
#include "simulation2/components/ICmpRangeManager.h"
#include "simulation2/system/CmpPtr.h"
#include "simulation2/system/Component.h"
#include "simulation2/system/Entity.h"
#include <SDL_mouse.h>
#include <algorithm>
#include <array>
#include <cmath>
#include <cstddef>
#include <fmt/printf.h>
#include <js/GCVector.h>
#include <js/RootingAPI.h>
@ -61,7 +62,6 @@
#include <js/Value.h>
#include <js/ValueArray.h>
#include <memory>
#include <stddef.h>
#include <string>
#include <tuple>
#include <vector>

View file

@ -40,7 +40,6 @@
#include <js/Class.h>
#include <js/Conversions.h>
#include <js/Object.h>
#include <js/PropertyAndElement.h>
#include <js/PropertyDescriptor.h>
#include <js/PropertySpec.h>
#include <js/RootingAPI.h>

View file

@ -21,19 +21,18 @@
#include "gui/CGUI.h"
#include "gui/GUIManager.h"
#include "ps/CStr.h"
#include "ps/VideoMode.h"
#include "scriptinterface/FunctionWrapper.h"
#include "scriptinterface/ScriptInterface.h"
#include "scriptinterface/StructuredClone.h"
#include "simulation2/system/ParamNode.h"
#include <js/PropertyAndElement.h>
#include "simulation2/system/Component.h"
#include <js/RootingAPI.h>
#include <js/TypeDecls.h>
#include <js/Value.h>
#include <string>
#include <stdexcept>
namespace JSI_GUIManager
{
// Note that the initData argument may only contain clonable data.

View file

@ -22,7 +22,6 @@
#include "lib/sysdep/compiler.h"
#include "scriptinterface/ScriptExtraHeaders.h"
#include <iterator>
#include <js/GCVector.h>
#include <js/Id.h>
#include <js/Proxy.h>
@ -31,7 +30,9 @@
#include <js/Value.h>
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
class JSFunction;
class JSObject;

View file

@ -19,17 +19,18 @@
#define INCLUDED_JSI_GUISIZE
#include "lib/posix/posix_types.h"
#include "lib/types.h"
#include "ps/CStr.h"
#include "scriptinterface/ScriptTypes.h"
#include <js/PropertySpec.h>
class ScriptInterface;
namespace JS { class Value; }
struct JSClass;
struct JSClassOps;
struct JSContext;
struct JSFunctionSpec;
struct JSPropertySpec;
namespace JSI_GUISize
{

View file

@ -25,7 +25,6 @@
#include "lib/file/vfs/vfs.h"
#include "lib/input.h"
#include "lib/path.h"
#include "lib/sysdep/compiler.h"
#include "ps/CLogger.h"
#include "ps/CStr.h"
#include "ps/ConfigDB.h"
@ -40,18 +39,18 @@
#include "scriptinterface/ScriptRequest.h"
#include "scriptinterface/StructuredClone.h"
#include <SDL_events.h>
#include <SDL_scancode.h>
#include <array>
#include <js/CallArgs.h>
#include <js/PropertyAndElement.h>
#include <js/RootingAPI.h>
#include <js/TypeDecls.h>
#include <js/Value.h>
#include <memory>
#include <optional>
#include <SDL_events.h>
#include <SDL_scancode.h>
#include <stdexcept>
#include <tuple>
#include <utility>
#include <variant>
#include "js/Promise.h"

View file

@ -23,7 +23,6 @@
#include "ps/CLogger.h"
#include "scriptinterface/FunctionWrapper.h"
#include <js/PropertyAndElement.h>
#include <unicode/utypes.h>
#include <string>
#include <vector>

View file

@ -24,6 +24,7 @@
#define INCLUDED_ALLOCATORS_SHARED_PTR
#include "lib/alignment.h"
#include "lib/debug.h"
#include "lib/status.h"
#include "lib/sysdep/rtl.h" // rtl_AllocateAligned
#include "lib/types.h"

View file

@ -32,7 +32,6 @@
#include "lib/debug.h"
#include "lib/file/common/file_stats.h"
#include "lib/posix/posix_filesystem.h"
#include "lib/posix/posix_types.h"
#include "lib/sysdep/filesystem.h"
#include <cerrno>

View file

@ -49,8 +49,6 @@
#include <fcntl.h>
#include <memory>
#include <utility>
namespace ERR
{
const Status IO = -110301;

View file

@ -27,15 +27,12 @@
#ifndef INCLUDED_VFS_TREE
#define INCLUDED_VFS_TREE
#include <map>
#include "lib/file/common/file_loader.h" // PIFileLoader
#include "lib/file/common/real_directory.h" // PRealDirectory
#include "lib/file/vfs/vfs_path.h"
#include "lib/path.h"
#include <ctime>
#include <memory>
#include <map>
#include <string>
class VfsFile

View file

@ -27,8 +27,6 @@
#ifndef INCLUDED_INPUT
#define INCLUDED_INPUT
#include "lib/external_libraries/libsdl_fwd.h"
struct SDL_Event_;
// input handler return values.

View file

@ -35,6 +35,7 @@
# if OS_WIN
# include <glad/wgl.h>
# elif !OS_MACOSX
# include <SDL_config.h>
# include <SDL_syswm.h>
# if defined(SDL_VIDEO_DRIVER_X11)
# include <X11/Xlib.h>

View file

@ -36,7 +36,6 @@
#include <cinttypes>
#include <cstdarg>
#include <cstdio>
#include <cstring>
#if OS_ANDROID
# include <boost/algorithm/string/replace.hpp>

View file

@ -30,7 +30,6 @@
#include "lib/code_annotation.h"
#include "lib/status.h"
#include "lib/sysdep/compiler.h"
#include "lib/sysdep/os.h"
#include <cstdarg>
#include <cstddef>

View file

@ -38,6 +38,7 @@
// If HAVE_STD wasn't defined at the point the ValueTraits header was included
// this header won't have been included and the default traits will be used for
// all variables... So fix that now ;-)
#include <cxxtest/GlobalFixture.h>
#include <cxxtest/StdValueTraits.h>
#include <cxxtest/TestSuite.h>

View file

@ -25,7 +25,6 @@
#include "apic.h"
#include "lib/bits.h"
#include "lib/code_annotation.h"
#include "lib/debug.h"
#include "lib/module_init.h"
#include "lib/status.h"

View file

@ -23,7 +23,6 @@
#include "lib/self_test.h"
#include "lib/adts/cache_adt.h"
#include "lib/timer.h"
#include <cstddef>
#include <queue>

View file

@ -32,6 +32,7 @@
#include "lib/posix/posix_types.h"
#include "lib/status.h"
#include "lib/sysdep/os.h"
#include "lib/utf8.h"
#include <algorithm>
#include <ctime>

View file

@ -31,7 +31,6 @@
#include "lib/config2.h" // CONFIG2_TIMER_ALLOW_RDTSC
#include "lib/debug.h"
#include "lib/sysdep/arch.h"
#include "lib/utf8.h"
#include <cstdint>
#include <string>

View file

@ -21,9 +21,6 @@
#include <array>
#include <cstddef>
#include <memory>
#include <new>
#include <unordered_map>
#include <utility>
#include <variant>

View file

@ -22,7 +22,7 @@
#include "lib/file/file_system.h"
#include "lib/file/vfs/vfs.h"
#include "lib/path.h"
#include "lib/types.h"
#include "lib/posix/posix_types.h"
#include "network/NetClient.h"
#include "network/NetMessage.h"
#include "network/NetServer.h"
@ -42,10 +42,8 @@
#include <js/RootingAPI.h>
#include <js/TypeDecls.h>
#include <js/Value.h>
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>
class TestNetComms : public CxxTest::TestSuite

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2019 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -15,6 +15,8 @@
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
*/
// IWYU pragma: begin_keep
#define MINIMAL_PCH 2
#include "lib/precompiled.h" // common precompiled header
@ -30,3 +32,5 @@
#include <unordered_map>
#endif // CONFIG_ENABLE_PCH
// IWYU pragma: end_keep

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2020 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -15,6 +15,8 @@
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
*/
// IWYU pragma: begin_keep
#include "lib/precompiled.h" // common precompiled header
// "engine"-specific PCH:
@ -26,3 +28,5 @@
#include "lib/file/vfs/vfs_util.h"
#include "scriptinterface/ScriptTypes.h"
#endif // CONFIG_ENABLE_PCH
// IWYU pragma: end_keep

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2021 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -15,6 +15,8 @@
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
*/
// IWYU pragma: begin_keep
#define MINIMAL_PCH 2
#include "lib/precompiled.h" // common precompiled header
@ -28,3 +30,5 @@
#include "ps/CStr.h"
#endif // CONFIG_ENABLE_PCH
// IWYU pragma: end_keep

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2009 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -15,6 +15,10 @@
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
*/
// IWYU pragma: begin_keep
#include "lib/precompiled.h" // common precompiled header
// "lowlevel"-specific PCH:
// IWYU pragma: end_keep

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2019 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -15,6 +15,8 @@
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
*/
// IWYU pragma: begin_keep
#include "lib/precompiled.h" // common precompiled header
#if CONFIG_ENABLE_PCH
@ -27,3 +29,5 @@
#include <cxxtest/RealDescriptions.h>
#endif // CONFIG_ENABLE_PCH
// IWYU pragma: end_keep

View file

@ -32,7 +32,7 @@
*/
#include "lib/input.h"
#include "lib/posix/posix_types.h"
#include "lib/types.h"
#include "ps/CStr.h"
#include "ps/containers/StaticVector.h"

View file

@ -48,7 +48,7 @@
#include "renderer/backend/IDeviceCommandContext.h"
#include "renderer/backend/IShaderProgram.h"
#include "simulation2/components/ICmpWaterManager.h"
#include "simulation2/system/CmpPtr.h"
#include "simulation2/system/Component.h"
#include "simulation2/system/Entity.h"
#include <algorithm>

View file

@ -60,7 +60,7 @@
#include "renderer/backend/IDeviceCommandContext.h"
#include "renderer/backend/IShaderProgram.h"
#include "simulation2/components/ICmpWaterManager.h"
#include "simulation2/system/CmpPtr.h"
#include "simulation2/system/Component.h"
#include "simulation2/system/Entity.h"
#include <algorithm>

View file

@ -47,7 +47,7 @@
#include "renderer/backend/ITexture.h"
#include "renderer/backend/PipelineState.h"
#include "renderer/backend/Sampler.h"
#include "simulation2/system/SimContext.h"
#include "simulation2/system/Component.h"
#include <algorithm>
#include <array>

View file

@ -37,9 +37,8 @@
#include "renderer/backend/IDeviceCommandContext.h"
#include "renderer/backend/IShaderProgram.h"
#include "simulation2/components/ICmpWaterManager.h"
#include "simulation2/system/CmpPtr.h"
#include "simulation2/system/Component.h"
#include "simulation2/system/Entity.h"
#include "simulation2/system/SimContext.h"
#include <array>
#include <cmath>

View file

@ -32,7 +32,6 @@
#include <SDL_video.h>
#include <initializer_list>
#include <js/PropertyAndElement.h>
#include <js/RootingAPI.h>
namespace Renderer

View file

@ -42,6 +42,7 @@
#include "renderer/backend/gl/Texture.h"
#include "scriptinterface/Object.h"
#include <SDL_config.h>
#include <SDL_error.h>
#include <SDL_version.h>
#include <SDL_video.h>
@ -52,7 +53,6 @@
#include <climits>
#include <cstring>
#include <iterator>
#include <js/PropertyAndElement.h>
#include <js/RootingAPI.h>
#include <limits>
#include <utility>

View file

@ -51,7 +51,6 @@
#include <algorithm>
#include <array>
#include <iterator>
#include <js/PropertyAndElement.h>
#include <js/RootingAPI.h>
#include <js/Value.h>
#include <limits>

View file

@ -21,7 +21,6 @@
#include "graphics/Color.h"
#include "lib/bits.h"
#include "lib/code_annotation.h"
#include "lib/debug.h"
#include "ps/CLogger.h"
#include "ps/ConfigDB.h"

View file

@ -26,7 +26,6 @@
#include <algorithm>
#include <iterator>
#include <js/PropertyAndElement.h>
#include <js/RootingAPI.h>
#include <js/Value.h>
#include <limits>

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2021 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -26,7 +26,6 @@
#include "renderer/RenderingOptions.h"
#include "scriptinterface/FunctionWrapper.h"
#include <js/PropertyAndElement.h>
#include <string>
namespace JSI_Renderer

View file

@ -19,7 +19,6 @@
#define INCLUDED_SCRIPTINTERFACE
#include "lib/code_annotation.h"
#include "lib/posix/posix_types.h"
#include "lib/types.h"
#include "ps/Errors.h"
#include "scriptinterface/ScriptConversions.h"
@ -43,7 +42,6 @@
class JSObject;
class Path;
class ScriptContext;
namespace JS { class HandleValueArray; }
namespace Script { class ModuleLoader; }
namespace boost { namespace random { class rand48; } }
struct JSClass;

View file

@ -31,11 +31,14 @@
#include "renderer/Scene.h"
#include "renderer/backend/Sampler.h"
#include "simulation2/MessageTypes.h"
#include "simulation2/components/ICmpFootprint.h"
#include "simulation2/components/ICmpIdentity.h"
#include "simulation2/components/ICmpObstructionManager.h"
#include "simulation2/components/ICmpOwnership.h"
#include "simulation2/components/ICmpPathfinder.h"
#include "simulation2/components/ICmpPlayer.h"
#include "simulation2/components/ICmpPlayerManager.h"
#include "simulation2/components/ICmpPosition.h"
#include "simulation2/components/ICmpRangeManager.h"
#include "simulation2/components/ICmpTerrain.h"
#include "simulation2/components/ICmpWaterManager.h"

View file

@ -24,9 +24,6 @@
#include "lib/types.h"
#include "maths/FixedVector2D.h"
#include "maths/Vector2D.h"
#include "simulation2/components/ICmpFootprint.h"
#include "simulation2/components/ICmpPathfinder.h"
#include "simulation2/components/ICmpPosition.h"
#include "simulation2/components/ICmpRallyPointRenderer.h"
#include "simulation2/helpers/Player.h"
#include "simulation2/system/Component.h"
@ -37,6 +34,9 @@
#include <vector>
class CFrustum;
class ICmpFootprint;
class ICmpPathfinder;
class ICmpPosition;
class SceneCollector;
struct SVisibilitySegment

View file

@ -20,7 +20,6 @@
#include "maths/Fixed.h"
#include "maths/FixedVector2D.h"
#include "simulation2/MessageTypes.h"
#include "simulation2/components/ICmpUnitMotionManager.h"
#include "simulation2/helpers/Grid.h"
#include "simulation2/helpers/Position.h"

View file

@ -34,6 +34,7 @@
#include "scriptinterface/ScriptInterface.h"
#include "simulation2/MessageTypes.h"
#include "simulation2/components/ICmpObstruction.h"
#include "simulation2/components/ICmpObstructionManager.h"
#include "simulation2/components/ICmpOwnership.h"
#include "simulation2/components/ICmpPathfinder.h"
#include "simulation2/components/ICmpPlayerManager.h"

View file

@ -76,10 +76,6 @@ struct EdgeAA
fixed c1;
};
class ICmpObstructionManager;
class CSimContext;
class SceneCollector;
class VertexPathfinder
{
public:

View file

@ -22,8 +22,6 @@
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <new>
#include <random>
#include <utility>
#include <vector>

View file

@ -34,6 +34,7 @@
#include <fcntl.h>
#include <fmt/format.h>
#include <iterator>
#include <ogg/config_types.h>
#include <stdexcept>
#include <vorbis/codec.h>
#include <vorbis/vorbisfile.h>

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2021 Wildfire Games.
/* Copyright (C) 2025 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -21,9 +21,12 @@
#if CONFIG2_AUDIO
#include "soundmanager/ISoundManager.h"
#include "soundmanager/SoundManager.h"
#include "soundmanager/data/SoundData.h"
#include <AL/al.h>
#include <cstddef>
#include <mutex>
CBufferItem::CBufferItem(CSoundData* sndData)

View file

@ -24,20 +24,18 @@
#include "precompiled.h"
#include <fstream>
#include "lib/self_test.h"
#include <cxxtest/GlobalFixture.h>
#include "lib/timer.h"
#include "lib/sysdep/sysdep.h"
#include "lib/timer.h"
#include "ps/Profiler2.h"
#include "ps/TaskManager.h"
#include "scriptinterface/FunctionWrapper.h"
#include "scriptinterface/ScriptEngine.h"
#include "scriptinterface/ScriptContext.h"
#include "scriptinterface/ScriptEngine.h"
#include "scriptinterface/ScriptInterface.h"
#include <fstream>
#include <optional>
class LeakReporter : public CxxTest::GlobalFixture