Remove unused includes in modules with clangd-tidy

This commit is contained in:
Rémi Verschelde committed 2026-03-16 16:40:39 +01:00
1 parent 874f500acb
commit 6d309c858e
179 files changed
+206 -238

No files matched your search

+1 -1
View File
@@ -62,8 +62,8 @@ def make_templates(target, source, env):
with methods.generated_wrapper(str(target[0])) as file:
file.write(f"""\
#include "core/object/object.h"
#include "core/object/script_language.h"
#include "core/string/ustring.h"
inline constexpr int TEMPLATES_ARRAY_SIZE = {len(parsed_templates)};
static const struct ScriptLanguage::ScriptTemplate TEMPLATES[TEMPLATES_ARRAY_SIZE] = {{
+1 -2
View File
@@ -350,8 +350,7 @@ bool CameraFeedLinux::set_format(int p_index, const Dictionary &p_parameters) {
return true;
}
CameraFeedLinux::CameraFeedLinux(const String &p_device_name) :
CameraFeed() {
CameraFeedLinux::CameraFeedLinux(const String &p_device_name) {
device_name = p_device_name;
_query_device(device_name);
}
+1
View File
@@ -32,6 +32,7 @@
#include "core/os/mutex.h"
#include "core/os/thread.h"
#include "core/templates/safe_refcount.h"
#include "servers/camera/camera_server.h"
class CameraLinux : public CameraServer {
+2
View File
@@ -30,6 +30,8 @@
#include "camera_win.h"
#include "servers/camera/camera_feed.h"
///@TODO sorry guys, I got about 80% through implementing this using DirectShow only
// to find out Microsoft deprecated half the API and its replacement is as confusing
// as they could make it. Joey suggested looking into libuvc which offers a more direct
-1
View File
@@ -30,7 +30,6 @@
#pragma once
#include "servers/camera/camera_feed.h"
#include "servers/camera/camera_server.h"
class CameraWindows : public CameraServer {
-1
View File
@@ -32,7 +32,6 @@
#include "core/math/geometry_3d.h"
#include "core/object/callable_mp.h"
#include "core/object/class_db.h"
#include "editor/editor_node.h"
#include "editor/editor_undo_redo_manager.h"
#include "editor/scene/3d/gizmos/gizmo_3d_helper.h"
+2 -1
View File
@@ -30,9 +30,10 @@
#pragma once
#include "../csg.h"
#include "../csg_shape.h"
#include "scene/main/scene_tree.h"
#include "scene/main/window.h"
#include "tests/test_macros.h"
-1
View File
@@ -32,7 +32,6 @@
#include "enet_connection.h"
#include "core/crypto/crypto.h"
#include "scene/main/multiplayer_peer.h"
#include <enet/enet.h>
-2
View File
@@ -32,9 +32,7 @@
#include "modules/gltf/gltf_defines.h"
#include "modules/gltf/gltf_state.h"
#include "modules/gltf/structures/gltf_skeleton.h"
#include "modules/gltf/structures/gltf_skin.h"
#include "modules/gltf/structures/gltf_texture.h"
#include <ufbx.h>
@@ -33,6 +33,7 @@
#include "../gdscript.h"
#include "core/config/project_settings.h"
#include "core/doc_data.h"
HashMap<String, String> GDScriptDocGen::singletons;
@@ -32,8 +32,6 @@
#include "../gdscript_parser.h"
#include "core/doc_data.h"
class GDScriptDocGen {
using GDP = GDScriptParser;
using GDType = GDP::DataType;
@@ -37,7 +37,6 @@
#include "core/core_constants.h"
#include "core/object/class_db.h"
#include "editor/settings/editor_settings.h"
#include "editor/themes/editor_theme_manager.h"
#include "scene/gui/text_edit.h"
Dictionary GDScriptSyntaxHighlighter::_get_line_syntax_highlighting_impl(int p_line) {
@@ -30,7 +30,6 @@
#include "gdscript_byte_codegen.h"
#include "core/debugger/engine_debugger.h"
#include "core/object/class_db.h"
uint32_t GDScriptByteCodeGenerator::add_parameter(const StringName &p_name, bool p_is_optional, const GDScriptDataType &p_type) {
-1
View File
@@ -31,7 +31,6 @@
#pragma once
#include "gdscript_function.h"
#include "gdscript_utility_functions.h"
#include "core/string/string_name.h"
#include "core/variant/variant.h"
-2
View File
@@ -40,8 +40,6 @@
#include "core/config/project_settings.h"
#include "core/object/class_db.h"
#include "scene/scene_string_names.h"
bool GDScriptCompiler::_is_class_member_property(CodeGen &codegen, const StringName &p_name) {
if (codegen.function_node && codegen.function_node->is_static) {
return false;
+1 -1
View File
@@ -33,7 +33,7 @@
#include "gdscript.h"
#include "gdscript_function.h"
#include "core/object/class_db.h"
#include "core/object/method_bind.h"
#include "core/string/string_builder.h"
static String _get_variant_string(const Variant &p_variant) {
@@ -30,6 +30,8 @@
#include "gdscript_language_server.h"
#include "gdscript_language_protocol.h"
#include "core/os/os.h"
#include "editor/editor_log.h"
#include "editor/editor_node.h"
@@ -30,8 +30,6 @@
#pragma once
#include "gdscript_language_protocol.h"
#include "editor/plugins/editor_plugin.h"
class GDScriptLanguageServer : public EditorPlugin {
@@ -36,7 +36,7 @@
#include "core/object/callable_mp.h"
#include "core/object/class_db.h"
#include "editor/script/script_text_editor.h"
#include "editor/script/script_editor_plugin.h"
#include "editor/settings/editor_settings.h"
#include "servers/display/display_server.h"
+1
View File
@@ -42,6 +42,7 @@
#include "editor/script/script_editor_plugin.h"
#ifndef GDSCRIPT_NO_LSP
#include "language_server/gdscript_language_protocol.h"
#include "language_server/gdscript_language_server.h"
#endif
#endif // TOOLS_ENABLED
@@ -39,7 +39,7 @@
#include "core/config/project_settings.h"
#include "core/core_globals.h"
#include "core/io/dir_access.h"
#include "core/io/file_access_pack.h"
#include "core/io/file_access.h"
#include "core/object/class_db.h"
#include "core/os/os.h"
#include "core/string/string_builder.h"
@@ -30,10 +30,9 @@
#pragma once
#include "../gdscript.h"
#include "core/error/error_macros.h"
#include "core/string/print_string.h"
#include "core/string/string_name.h"
#include "core/string/ustring.h"
#include "core/templates/vector.h"
+1 -1
View File
@@ -48,7 +48,7 @@
#include "scene/resources/packed_scene.h"
#include "scene/theme/theme_db.h"
#include "modules/modules_enabled.gen.h" // For mono.
#include "modules/modules_enabled.gen.h" // IWYU pragma: keep. For mono.
namespace GDScriptTests {
+1
View File
@@ -35,6 +35,7 @@
#include "../gdscript_parser.h"
#include "../gdscript_tokenizer.h"
#include "../gdscript_tokenizer_buffer.h"
#include "gdscript_test_runner.h"
#include "core/config/project_settings.h"
#include "core/io/file_access.h"
-4
View File
@@ -30,10 +30,6 @@
#pragma once
#include "gdscript_test_runner.h"
#include "tests/test_macros.h"
namespace GDScriptTests {
enum TestType {
+1
View File
@@ -40,6 +40,7 @@
#include "../language_server/gdscript_language_protocol.h"
#include "../language_server/gdscript_workspace.h"
#include "../language_server/godot_lsp.h"
#include "gdscript_test_runner.h"
#include "core/io/dir_access.h"
#include "editor/file_system/editor_file_system.h"
+6 -2
View File
@@ -30,10 +30,14 @@
#include "register_types.h"
#include "core/config/engine.h"
#include "core/os/os.h"
#include "shader_compile.h"
#include "core/config/engine.h"
#ifdef D3D12_ENABLED
#include "core/os/os.h"
#endif
GODOT_GCC_WARNING_PUSH_AND_IGNORE("-Wshadow")
#include <glslang/Public/ResourceLimits.h>
@@ -30,7 +30,7 @@
#include "gltf_document_extension.h"
#include "core/object/class_db.h"
#include "core/object/class_db.h" // IWYU pragma: keep. `GDVIRTUAL_BIND` macro.
void GLTFDocumentExtension::_bind_methods() {
// Import process.
@@ -30,6 +30,9 @@
#include "gltf_document_extension_physics.h"
#include "gltf_physics_body.h"
#include "gltf_physics_shape.h"
#include "scene/3d/physics/area_3d.h"
#include "scene/3d/physics/rigid_body_3d.h"
#include "scene/3d/physics/static_body_3d.h"
@@ -31,8 +31,6 @@
#pragma once
#include "../gltf_document_extension.h"
#include "gltf_physics_body.h"
#include "gltf_physics_shape.h"
class GLTFDocumentExtensionPhysics : public GLTFDocumentExtension {
GDCLASS(GLTFDocumentExtensionPhysics, GLTFDocumentExtension);
@@ -30,7 +30,8 @@
#pragma once
#include "scene/3d/physics/physics_body_3d.h"
#include "core/io/resource.h"
#include "scene/3d/physics/collision_object_3d.h"
// GLTFPhysicsBody is an intermediary between Godot's physics body nodes
// and the OMI_physics_body extension.
@@ -30,8 +30,6 @@
#include "gltf_physics_shape.h"
#include "../../gltf_state.h"
#include "core/math/convex_hull.h"
#include "core/object/class_db.h"
#include "scene/3d/physics/area_3d.h"
-1
View File
@@ -48,7 +48,6 @@
#include "core/object/class_db.h"
#include "core/object/object_id.h"
#include "core/version.h"
#include "scene/2d/node_2d.h"
#include "scene/3d/bone_attachment_3d.h"
#include "scene/3d/camera_3d.h"
#include "scene/3d/importer_mesh_instance_3d.h"
+2
View File
@@ -43,6 +43,8 @@
#ifndef PHYSICS_3D_DISABLED
#include "extensions/physics/gltf_document_extension_physics.h"
#include "extensions/physics/gltf_physics_body.h"
#include "extensions/physics/gltf_physics_shape.h"
#endif // PHYSICS_3D_DISABLED
#ifdef TOOLS_ENABLED
+2
View File
@@ -30,6 +30,8 @@
#include "skin_tool.h"
#include "core/math/disjoint_set.h"
SkinNodeIndex SkinTool::_find_highest_node(Vector<Ref<GLTFNode>> &r_nodes, const Vector<GLTFNodeIndex> &p_subset) {
int highest = -1;
SkinNodeIndex best_node = -1;
-1
View File
@@ -36,7 +36,6 @@
#include "structures/gltf_skeleton.h"
#include "structures/gltf_skin.h"
#include "core/math/disjoint_set.h"
#include "core/templates/rb_set.h"
using SkinNodeIndex = int;
-7
View File
@@ -37,16 +37,9 @@
#include "core/config/project_settings.h"
#include "core/io/dir_access.h"
#include "core/object/class_db.h"
#include "drivers/png/image_loader_png.h"
#include "editor/import/3d/resource_importer_scene.h"
#include "editor/import/resource_importer_texture.h"
#include "editor/inspector/editor_resource_preview.h"
#include "scene/3d/mesh_instance_3d.h"
#include "scene/3d/skeleton_3d.h"
#include "scene/main/window.h"
#include "scene/resources/3d/primitive_meshes.h"
#include "scene/resources/compressed_texture.h"
#include "scene/resources/material.h"
#include "scene/resources/packed_scene.h"
#include "tests/test_utils.h"
+3 -6
View File
@@ -31,10 +31,11 @@
#pragma once
#include "test_gltf.h"
#include "tests/test_macros.h"
#ifdef TOOLS_ENABLED
#include "../editor/editor_scene_importer_gltf.h"
#include "editor/import/3d/resource_importer_scene.h"
#include "scene/3d/mesh_instance_3d.h"
#include "scene/3d/skeleton_3d.h"
@@ -42,11 +43,7 @@
#include "scene/main/window.h"
#include "scene/resources/3d/primitive_meshes.h"
#include "scene/resources/material.h"
#include "scene/resources/packed_scene.h"
#include "modules/gltf/editor/editor_scene_importer_gltf.h"
#include "modules/gltf/gltf_document.h"
#include "modules/gltf/gltf_state.h"
#include "tests/test_macros.h"
namespace TestGltf {
+5 -3
View File
@@ -30,13 +30,15 @@
#pragma once
#include "test_gltf.h"
#ifdef TOOLS_ENABLED
#include "test_gltf.h"
#include "editor/file_system/editor_file_system.h"
#include "editor/file_system/editor_paths.h"
#include "editor/inspector/editor_resource_preview.h"
#include "scene/main/scene_tree.h"
#include "scene/main/window.h"
#include "scene/resources/3d/primitive_meshes.cpp"
#include "scene/resources/image_texture.h"
namespace TestGltf {
@@ -30,7 +30,6 @@
#pragma once
#include "core/math/math_funcs.h"
#include "core/math/rect2.h"
class GodotCollisionObject2D;
@@ -29,6 +29,7 @@
/**************************************************************************/
#include "godot_collision_object_2d.h"
#include "godot_physics_server_2d.h"
#include "godot_space_2d.h"
@@ -34,7 +34,6 @@
#include "godot_shape_2d.h"
#include "core/templates/self_list.h"
#include "servers/physics_2d/physics_server_2d.h"
class GodotSpace2D;
@@ -34,7 +34,6 @@
#include "godot_broad_phase_2d_bvh.h"
#include "godot_collision_solver_2d.h"
#include "core/config/project_settings.h"
#include "core/debugger/engine_debugger.h"
#include "core/os/os.h"
@@ -31,7 +31,6 @@
#pragma once
#include "core/math/aabb.h"
#include "core/math/math_funcs.h"
class GodotCollisionObject3D;
@@ -34,7 +34,6 @@
#include "godot_shape_3d.h"
#include "core/templates/self_list.h"
#include "servers/physics_3d/physics_server_3d.h"
#ifdef DEBUG_ENABLED
#define MAX_OBJECT_DISTANCE 3.1622776601683791e+18
+1 -1
View File
@@ -30,7 +30,7 @@
#include "godot_step_3d.h"
#include "godot_joint_3d.h"
#include "godot_constraint_3d.h"
#include "core/object/worker_thread_pool.h"
#include "core/os/os.h"
@@ -49,7 +49,8 @@ subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
#include "core/math/transform_3d.h"
#include "core/math/basis.h"
#include "core/math/vector3.h"
class GodotJacobianEntry3D {
public:
-1
View File
@@ -43,7 +43,6 @@
#ifndef PHYSICS_3D_DISABLED
#include "core/math/convex_hull.h"
#include "scene/resources/3d/box_shape_3d.h"
#include "scene/resources/3d/capsule_shape_3d.h"
#include "scene/resources/3d/concave_polygon_shape_3d.h"
#include "scene/resources/3d/convex_polygon_shape_3d.h"
-1
View File
@@ -32,7 +32,6 @@
#include "scene/3d/node_3d.h"
#include "scene/resources/3d/mesh_library.h"
#include "scene/resources/multimesh.h"
class NavigationMesh;
class NavigationMeshSourceGeometryData3D;
@@ -39,7 +39,6 @@
#include "objects/jolt_area_3d.h"
#include "objects/jolt_body_3d.h"
#include "objects/jolt_soft_body_3d.h"
#include "servers/physics_3d/physics_server_3d_wrap_mt.h"
#include "shapes/jolt_box_shape_3d.h"
#include "shapes/jolt_capsule_shape_3d.h"
#include "shapes/jolt_concave_polygon_shape_3d.h"
@@ -30,7 +30,6 @@
#include "jolt_area_3d.h"
#include "../jolt_project_settings.h"
#include "../misc/jolt_math_funcs.h"
#include "../misc/jolt_type_conversions.h"
#include "../shapes/jolt_shape_3d.h"
@@ -30,8 +30,6 @@
#include "jolt_group_filter.h"
#include "jolt_area_3d.h"
#include "jolt_body_3d.h"
#include "jolt_object_3d.h"
bool JoltGroupFilter::CanCollide(const JPH::CollisionGroup &p_group1, const JPH::CollisionGroup &p_group2) const {
@@ -31,8 +31,6 @@
#include "jolt_object_3d.h"
#include "../jolt_physics_server_3d.h"
#include "../jolt_project_settings.h"
#include "../spaces/jolt_layers.h"
#include "../spaces/jolt_space_3d.h"
#include "jolt_group_filter.h"
@@ -35,7 +35,6 @@
#include "core/math/vector3.h"
#include "core/object/object.h"
#include "core/string/ustring.h"
#include "core/templates/local_vector.h"
#include "core/templates/rid.h"
#include "Jolt/Jolt.h"
@@ -32,7 +32,6 @@
#include "../misc/jolt_math_funcs.h"
#include "../misc/jolt_type_conversions.h"
#include "../shapes/jolt_custom_double_sided_shape.h"
#include "../shapes/jolt_shape_3d.h"
#include "../spaces/jolt_space_3d.h"
@@ -30,8 +30,6 @@
#pragma once
#include "jolt_custom_shape_type.h"
#include "Jolt/Jolt.h"
#include "Jolt/Physics/Collision/Shape/DecoratedShape.h"
@@ -30,8 +30,6 @@
#include "jolt_custom_double_sided_shape.h"
#include "../jolt_project_settings.h"
#include "core/error/error_macros.h"
#include "Jolt/Physics/Collision/CollisionDispatch.h"
@@ -32,6 +32,8 @@
#include "../spaces/jolt_query_collectors.h"
#include "core/error/error_macros.h"
#include "Jolt/Physics/Collision/CastResult.h"
#include "Jolt/Physics/Collision/RayCast.h"
#include "Jolt/Physics/Collision/TransformedShape.h"
@@ -35,7 +35,6 @@
#include "core/templates/hash_set.h"
#include "core/templates/hashfuncs.h"
#include "core/templates/local_vector.h"
#include "core/templates/safe_refcount.h"
#include "core/variant/variant.h"
#include "Jolt/Jolt.h"
@@ -44,8 +43,6 @@
#include "Jolt/Physics/Collision/ContactListener.h"
#include "Jolt/Physics/SoftBody/SoftBodyContactListener.h"
#include <new>
class JoltArea3D;
class JoltBody3D;
class JoltShapedObject3D;
@@ -30,8 +30,6 @@
#include "jolt_job_system.h"
#include "../jolt_project_settings.h"
#include "core/debugger/engine_debugger.h"
#include "core/object/worker_thread_pool.h"
#include "core/os/os.h"
@@ -30,7 +30,6 @@
#include "jolt_layers.h"
#include "../jolt_project_settings.h"
#include "jolt_broad_phase_layer.h"
#include "core/error/error_macros.h"
@@ -35,7 +35,6 @@
#include "../shapes/jolt_custom_motion_shape.h"
#include "../shapes/jolt_custom_ray_shape.h"
#include "../shapes/jolt_custom_shape_type.h"
#include "../shapes/jolt_shape_3d.h"
#include "jolt_broad_phase_layer.h"
#include "jolt_space_3d.h"
@@ -30,9 +30,6 @@
#pragma once
#include "../jolt_project_settings.h"
#include "jolt_space_3d.h"
#include "Jolt/Jolt.h"
#include "Jolt/Core/STLLocalAllocator.h"
@@ -36,7 +36,6 @@
#include "../misc/jolt_stream_wrappers.h"
#include "../objects/jolt_area_3d.h"
#include "../objects/jolt_body_3d.h"
#include "../shapes/jolt_custom_shape_type.h"
#include "../shapes/jolt_shape_3d.h"
#include "jolt_body_activation_listener_3d.h"
#include "jolt_contact_listener_3d.h"
-1
View File
@@ -34,7 +34,6 @@
#include "core/io/file_access_memory.h"
#include "core/object/class_db.h"
#include "scene/resources/image_texture.h"
#include "scene/resources/texture.h"
#include "servers/rendering/rendering_server.h"
#include <ktx.h>
-1
View File
@@ -32,7 +32,6 @@
#include "core/templates/local_vector.h"
#include "scene/3d/lightmapper.h"
#include "scene/resources/mesh.h"
class RenderingDevice;
class RDShaderFile;
@@ -30,7 +30,6 @@
#pragma once
#include "core/crypto/crypto.h"
#include "core/crypto/hashing_context.h"
#include "tests/test_macros.h"
+4
View File
@@ -36,7 +36,9 @@ def register_module_types_builder(target, source, env):
#include "modules/modules_enabled.gen.h"
// IWYU pragma: begin_keep.
{mod_inc}
// IWYU pragma: end_keep.
void initialize_modules(ModuleInitializationLevel p_level) {{
{mod_init}
@@ -52,5 +54,7 @@ void uninitialize_modules(ModuleInitializationLevel p_level) {{
def modules_tests_builder(target, source, env):
headers = sorted([os.path.relpath(src.path, methods.base_folder).replace("\\", "/") for src in source])
with methods.generated_wrapper(str(target[0])) as file:
file.write("// IWYU pragma: begin_keep.\n")
for header in headers:
file.write(f'#include "{header}"\n')
file.write("// IWYU pragma: end_keep.\n")
-1
View File
@@ -35,7 +35,6 @@
#include "core/config/project_settings.h"
#include "core/io/file_access.h"
#include "core/io/json.h"
#include "core/version.h"
void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) {
Dictionary classes_dict;
+11 -4
View File
@@ -30,15 +30,19 @@
#include "csharp_script.h"
#include "godotsharp_defs.h"
#include "godotsharp_dirs.h"
#include "managed_callable.h"
#include "mono_gd/gd_mono_cache.h"
#include "signal_awaiter_utils.h"
#include "utils/macros.h"
#include "utils/naming_utils.h"
#include "utils/path_utils.h"
#include "utils/string_utils.h"
#ifdef GD_MONO_HOT_RELOAD
#include "managed_callable.h"
#include "utils/path_utils.h"
#endif
#ifdef DEBUG_ENABLED
#include "class_db_api_json.h"
#endif // DEBUG_ENABLED
@@ -61,11 +65,14 @@
#ifdef TOOLS_ENABLED
#include "core/os/keyboard.h"
#include "editor/docks/inspector_dock.h"
#include "editor/docks/signals_dock.h"
#include "editor/editor_node.h"
#include "editor/file_system/editor_file_system.h"
#include "editor/settings/editor_settings.h"
#ifdef GD_MONO_HOT_RELOAD
#include "editor/docks/inspector_dock.h"
#include "editor/docks/signals_dock.h"
#endif
#endif
// Types that will be skipped over (in favor of their base types) when setting up instance bindings.
@@ -39,7 +39,6 @@
#include "core/config/engine.h"
#include "core/core_constants.h"
#include "core/io/compression.h"
#include "core/io/dir_access.h"
#include "core/io/file_access.h"
#include "core/os/os.h"
+12 -3
View File
@@ -30,15 +30,20 @@
#include "editor_internal_calls.h"
#include "../csharp_script.h"
#include "../godotsharp_dirs.h"
#include "../interop_types.h"
#include "../utils/macos_utils.h"
#include "../utils/path_utils.h"
#include "code_completion.h"
#ifdef GD_MONO_HOT_RELOAD
#include "../csharp_script.h"
#endif
#ifdef MACOS_ENABLED
#include "../utils/macos_utils.h"
#endif
#include "core/config/project_settings.h"
#include "core/object/callable_mp.h"
#include "core/os/os.h"
#include "core/version.h"
#include "editor/debugger/editor_debugger_node.h"
@@ -52,6 +57,10 @@
#include "editor/themes/editor_scale.h"
#include "main/main.h"
#ifdef GD_MONO_HOT_RELOAD
#include "core/object/callable_mp.h"
#endif
#ifdef UNIX_ENABLED
#include <unistd.h> // access
#endif
+2 -1
View File
@@ -35,17 +35,18 @@
#include "../managed_callable.h"
#include "../mono_gd/gd_mono_cache.h"
#include "../signal_awaiter_utils.h"
#include "../utils/path_utils.h"
#include "core/config/engine.h"
#include "core/config/project_settings.h"
#include "core/debugger/engine_debugger.h"
#include "core/debugger/script_debugger.h"
#include "core/io/compression.h"
#include "core/io/marshalls.h"
#include "core/object/class_db.h"
#include "core/object/method_bind.h"
#include "core/os/os.h"
#include "core/string/string_name.h"
#include "core/variant/variant_parser.h"
#ifdef TOOLS_ENABLED
#include "editor/file_system/editor_file_system.h"
+11 -3
View File
@@ -31,18 +31,26 @@
#include "godotsharp_dirs.h"
#include "mono_gd/gd_mono.h"
#include "utils/path_utils.h"
#include "core/config/engine.h"
#ifndef TOOLS_ENABLED
#include "utils/path_utils.h"
#endif
#include "core/config/project_settings.h"
#include "core/io/dir_access.h"
#include "core/os/os.h"
#ifdef TOOLS_ENABLED
#include "core/version.h"
#include "editor/file_system/editor_paths.h"
#endif
#ifndef TOOLS_ENABLED
#include "core/config/engine.h"
#ifndef ANDROID_ENABLED
#include "core/io/file_access.h"
#endif
#endif
namespace GodotSharpDirs {
String _get_expected_build_config() {
+4 -1
View File
@@ -32,10 +32,13 @@
#include "mono_gc_handle.h"
#include "core/variant/callable.h"
#ifdef GD_MONO_HOT_RELOAD
#include "core/os/mutex.h"
#include "core/templates/rb_map.h"
#include "core/templates/self_list.h"
#include "core/variant/callable.h"
#endif
class ManagedCallable : public CallableCustom {
friend class CSharpLanguage;
+5 -1
View File
@@ -30,7 +30,11 @@
#pragma once
#include "core/object/ref_counted.h"
#include "core/typedefs.h"
#ifdef DEBUG_ENABLED
#include "core/error/error_macros.h"
#endif
namespace gdmono {
-2
View File
@@ -30,7 +30,6 @@
#include "gd_mono.h"
#include "../csharp_script.h"
#include "../glue/runtime_interop.h"
#include "../godotsharp_dirs.h"
#include "../thirdparty/coreclr_delegates.h"
@@ -49,7 +48,6 @@
#include "core/config/engine.h"
#include "core/config/project_settings.h"
#include "core/debugger/engine_debugger.h"
#include "core/io/dir_access.h"
#include "core/io/file_access.h"
#include "core/os/os.h"
+3 -2
View File
@@ -30,9 +30,10 @@
#pragma once
#include "../godotsharp_defs.h"
#include "core/object/object.h"
#include "core/string/ustring.h"
#include "core/io/config_file.h"
#include <cstdint>
#ifndef GD_CLR_STDCALL
#ifdef WIN32
-1
View File
@@ -32,7 +32,6 @@
#include "csharp_script.h"
#include "core/config/engine.h"
#include "core/object/class_db.h"
CSharpLanguage *script_language_cs = nullptr;
+4 -2
View File
@@ -30,10 +30,12 @@
#pragma once
#include "csharp_script.h"
#include "mono_gc_handle.h"
#include "core/object/ref_counted.h"
#include "core/object/object_id.h"
#include "core/string/string_name.h"
#include "core/string/ustring.h"
#include "core/variant/callable.h"
Error gd_mono_connect_signal_awaiter(Object *p_source, const StringName &p_signal, Object *p_target, GCHandleIntPtr p_awaiter_handle_ptr);
-2
View File
@@ -31,7 +31,6 @@
#include "path_utils.h"
#include "core/config/project_settings.h"
#include "core/io/dir_access.h"
#include "core/io/file_access.h"
#include "core/os/os.h"
@@ -43,7 +42,6 @@
#define ENV_PATH_SEP ";"
#else
#include <unistd.h>
#include <climits>
#define ENV_PATH_SEP ":"
#endif
-1
View File
@@ -33,7 +33,6 @@
#include "core/io/file_access.h"
#include <cstdio>
#include <cstdlib>
namespace {
-1
View File
@@ -31,7 +31,6 @@
#pragma once
#include "core/string/ustring.h"
#include "core/variant/variant.h"
#include <cstdarg>
-1
View File
@@ -35,7 +35,6 @@
#include "core/object/class_db.h"
#ifdef TOOLS_ENABLED
#include "core/config/engine.h"
#include "editor/editor_node.h"
#include "resource_importer_mp3.h"
+2 -1
View File
@@ -30,7 +30,8 @@
#include "resource_importer_mp3.h"
#include "core/io/file_access.h"
#include "audio_stream_mp3.h"
#include "core/io/resource_saver.h"
#ifdef TOOLS_ENABLED
-2
View File
@@ -30,8 +30,6 @@
#pragma once
#include "audio_stream_mp3.h"
#include "core/io/resource_importer.h"
class ResourceImporterMP3 : public ResourceImporter {
@@ -32,7 +32,7 @@
#include "core/io/resource_loader.h"
#include "core/object/callable_mp.h"
#include "core/object/class_db.h"
#include "core/object/class_db.h" // IWYU pragma: keep. `ADD_SIGNAL` macro.
#include "editor/editor_string_names.h"
#include "editor/run/editor_run_bar.h"
#include "editor/settings/editor_settings.h"
@@ -40,6 +40,7 @@
#include "scene/gui/check_box.h"
#include "scene/gui/flow_container.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/split_container.h"
#include "scene/main/timer.h"
void EditorNetworkProfiler::_bind_methods() {
@@ -36,7 +36,6 @@
#include "scene/gui/box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/label.h"
#include "scene/gui/split_container.h"
#include "scene/gui/tree.h"
class Timer;
@@ -35,7 +35,7 @@
#include "replication_editor.h"
#include "core/object/callable_mp.h"
#include "core/object/class_db.h"
#include "core/object/class_db.h" // IWYU pragma: keep. `ADD_SIGNAL` macro.
#include "editor/docks/editor_dock_manager.h"
#include "editor/editor_interface.h"
#include "editor/editor_node.h"
@@ -32,6 +32,7 @@
#include "core/object/class_db.h"
#include "scene/main/scene_tree.h"
#include "scene/main/window.h"
#include "tests/test_macros.h"
#include "tests/test_utils.h"
@@ -31,8 +31,10 @@
#pragma once
#include "core/object/callable_mp.h"
#include "core/os/os.h"
#include "scene/2d/node_2d.h"
#include "scene/main/scene_tree.h"
#include "tests/signal_watcher.h"
#include "tests/test_macros.h"
#include "tests/test_utils.h"
@@ -31,8 +31,6 @@
#include "nav_map_builder_2d.h"
#include "../nav_link_2d.h"
#include "../nav_map_2d.h"
#include "../nav_region_2d.h"
#include "../triangle2.h"
#include "nav_map_iteration_2d.h"
#include "nav_region_iteration_2d.h"
@@ -30,7 +30,6 @@
#pragma once
#include "../nav_rid_2d.h"
#include "../nav_utils_2d.h"
#include "nav_mesh_queries_2d.h"
@@ -34,7 +34,6 @@
#include "core/object/object.h"
#include "core/object/worker_thread_pool.h"
#include "core/templates/rid_owner.h"
#include "servers/navigation_2d/navigation_server_2d.h"
class Node;
@@ -30,8 +30,6 @@
#include "nav_region_builder_2d.h"
#include "../nav_map_2d.h"
#include "../nav_region_2d.h"
#include "../triangle2.h"
#include "nav_region_iteration_2d.h"
@@ -32,7 +32,6 @@
#include "../nav_utils_2d.h"
#include "nav_base_iteration_2d.h"
#include "scene/resources/2d/navigation_polygon.h"
#include "core/math/rect2.h"
+1 -1
View File
@@ -31,8 +31,8 @@
#pragma once
#include "nav_rid_2d.h"
#include "nav_utils_2d.h"
#include "core/object/object_id.h"
#include "servers/navigation_2d/navigation_constants_2d.h"
class NavMap2D;
+2 -4
View File
@@ -30,12 +30,10 @@
#pragma once
#include "core/math/vector3.h"
#include "core/object/ref_counted.h"
#include "core/templates/hash_map.h"
#include "core/math/vector2.h"
#include "core/templates/hashfuncs.h"
#include "core/templates/local_vector.h"
#include "servers/navigation_2d/navigation_constants_2d.h"
#include "core/templates/rid.h"
#include <cfloat> // FLT_MAX
-1
View File
@@ -32,7 +32,6 @@
#include "2d/godot_navigation_server_2d.h"
#include "core/config/engine.h"
#include "core/object/callable_mp.h"
#include "servers/navigation_2d/navigation_server_2d.h"
@@ -31,8 +31,6 @@
#include "nav_map_builder_3d.h"
#include "../nav_link_3d.h"
#include "../nav_map_3d.h"
#include "../nav_region_3d.h"
#include "nav_map_iteration_3d.h"
#include "nav_region_iteration_3d.h"
Loaded 100 of 179 files, more files were not shown because too many files have changed in this diff. Show more