From 7dae5da1982f4a55ba91557814905faef9ce461b Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Thu, 5 Feb 2026 19:47:10 -0600 Subject: [PATCH] Style: Convert `*.gen.inc` to `*.gen.h` --- core/debugger/engine_profiler.h | 2 +- core/extension/SCsub | 2 +- core/io/image_loader.h | 2 +- core/io/packet_peer.h | 4 ++-- core/io/resource.h | 2 +- core/io/resource_loader.h | 2 +- core/io/resource_saver.h | 2 +- core/io/stream_peer.h | 4 ++-- core/math/a_star.h | 2 +- core/math/a_star_grid_2d.h | 2 +- core/object/SCsub | 2 +- core/object/object.h | 2 +- core/object/script_language_extension.h | 4 ++-- core/os/main_loop.h | 2 +- core/string/translation.h | 2 +- editor/export/editor_export_platform_extension.h | 2 +- editor/inspector/editor_context_menu_plugin.h | 2 +- editor/inspector/editor_resource_tooltip_plugins.h | 2 +- editor/plugins/editor_resource_conversion_plugin.h | 2 +- editor/script/editor_script.h | 2 +- editor/translations/editor_translation_parser.h | 2 +- editor/version_control/editor_vcs_interface.h | 2 +- modules/openxr/extensions/openxr_extension_wrapper.h | 2 +- modules/openxr/openxr_structure.h | 2 +- modules/text_server_adv/text_server_adv.h | 2 +- modules/text_server_fb/text_server_fb.h | 2 +- modules/webrtc/webrtc_data_channel_extension.h | 4 ++-- modules/webrtc/webrtc_peer_connection_extension.h | 4 ++-- scene/gui/control.h | 2 +- scene/gui/rich_text_effect.h | 2 +- scene/main/multiplayer_peer.h | 4 ++-- scene/resources/compositor.h | 2 +- scene/resources/style_box.h | 2 +- scene/resources/syntax_highlighter.h | 2 +- servers/audio/audio_effect.h | 2 +- servers/audio/audio_stream.h | 2 +- servers/physics_2d/physics_server_2d_extension.h | 4 ++-- servers/physics_3d/physics_server_3d.h | 2 +- servers/physics_3d/physics_server_3d_extension.h | 2 +- servers/rendering/storage/render_scene_data.h | 2 +- servers/text/text_server_extension.h | 2 +- 41 files changed, 48 insertions(+), 48 deletions(-) diff --git a/core/debugger/engine_profiler.h b/core/debugger/engine_profiler.h index ae6ddc48d4..42d4452f1d 100644 --- a/core/debugger/engine_profiler.h +++ b/core/debugger/engine_profiler.h @@ -30,7 +30,7 @@ #pragma once -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/ref_counted.h" class EngineProfiler : public RefCounted { diff --git a/core/extension/SCsub b/core/extension/SCsub index e40170227a..4690234ff8 100644 --- a/core/extension/SCsub +++ b/core/extension/SCsub @@ -7,7 +7,7 @@ import make_interface_dumper import make_interface_header import make_wrappers -env.CommandNoCache(["ext_wrappers.gen.inc"], "make_wrappers.py", env.Run(make_wrappers.run)) +env.CommandNoCache("ext_wrappers.gen.h", "make_wrappers.py", env.Run(make_wrappers.run)) env.CommandNoCache( "gdextension_interface_dump.gen.h", ["gdextension_interface.json", "make_interface_dumper.py"], diff --git a/core/io/image_loader.h b/core/io/image_loader.h index 3ae09c5fb3..5a638747f6 100644 --- a/core/io/image_loader.h +++ b/core/io/image_loader.h @@ -34,7 +34,7 @@ #include "core/io/file_access.h" #include "core/io/image.h" #include "core/io/resource_loader.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/string/ustring.h" #include "core/templates/list.h" #include "core/variant/binder_common.h" diff --git a/core/io/packet_peer.h b/core/io/packet_peer.h index 85526daedf..c9a7d0ed5c 100644 --- a/core/io/packet_peer.h +++ b/core/io/packet_peer.h @@ -34,8 +34,8 @@ #include "core/object/class_db.h" #include "core/templates/ring_buffer.h" -#include "core/extension/ext_wrappers.gen.inc" -#include "core/object/gdvirtual.gen.inc" +#include "core/extension/ext_wrappers.gen.h" +#include "core/object/gdvirtual.gen.h" #include "core/variant/native_ptr.h" class PacketPeer : public RefCounted { diff --git a/core/io/resource.h b/core/io/resource.h index 38e615ac46..5a071b1377 100644 --- a/core/io/resource.h +++ b/core/io/resource.h @@ -32,7 +32,7 @@ #include "core/io/resource_uid.h" #include "core/object/class_db.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/ref_counted.h" #include "core/templates/safe_refcount.h" #include "core/templates/self_list.h" diff --git a/core/io/resource_loader.h b/core/io/resource_loader.h index 33b79b5a80..3017613fb8 100644 --- a/core/io/resource_loader.h +++ b/core/io/resource_loader.h @@ -31,7 +31,7 @@ #pragma once #include "core/io/resource.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/worker_thread_pool.h" #include "core/os/thread.h" diff --git a/core/io/resource_saver.h b/core/io/resource_saver.h index 0fc660c1a0..9a4a35873e 100644 --- a/core/io/resource_saver.h +++ b/core/io/resource_saver.h @@ -31,7 +31,7 @@ #pragma once #include "core/io/resource.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" class ResourceFormatSaver : public RefCounted { GDCLASS(ResourceFormatSaver, RefCounted); diff --git a/core/io/stream_peer.h b/core/io/stream_peer.h index 7efebcfccf..af503b7d0a 100644 --- a/core/io/stream_peer.h +++ b/core/io/stream_peer.h @@ -32,8 +32,8 @@ #include "core/object/ref_counted.h" -#include "core/extension/ext_wrappers.gen.inc" -#include "core/object/gdvirtual.gen.inc" +#include "core/extension/ext_wrappers.gen.h" +#include "core/object/gdvirtual.gen.h" #include "core/variant/native_ptr.h" class StreamPeer : public RefCounted { diff --git a/core/math/a_star.h b/core/math/a_star.h index 048ead784c..8e643f4555 100644 --- a/core/math/a_star.h +++ b/core/math/a_star.h @@ -30,7 +30,7 @@ #pragma once -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/ref_counted.h" #include "core/templates/a_hash_map.h" diff --git a/core/math/a_star_grid_2d.h b/core/math/a_star_grid_2d.h index 4883c09206..14f8ccc8b9 100644 --- a/core/math/a_star_grid_2d.h +++ b/core/math/a_star_grid_2d.h @@ -30,7 +30,7 @@ #pragma once -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/ref_counted.h" #include "core/templates/local_vector.h" diff --git a/core/object/SCsub b/core/object/SCsub index 3d0d2c14dd..eeb59324a3 100644 --- a/core/object/SCsub +++ b/core/object/SCsub @@ -5,7 +5,7 @@ Import("env") import make_virtuals -env.CommandNoCache(["gdvirtual.gen.inc"], "make_virtuals.py", env.Run(make_virtuals.run)) +env.CommandNoCache("gdvirtual.gen.h", "make_virtuals.py", env.Run(make_virtuals.run)) env_object = env.Clone() diff --git a/core/object/object.h b/core/object/object.h index a4f6bdf16e..4d7732c703 100644 --- a/core/object/object.h +++ b/core/object/object.h @@ -719,7 +719,7 @@ protected: return can_die; } - // Used in gdvirtual.gen.inc + // Used in gdvirtual.gen.h void _gdvirtual_init_method_ptr(uint32_t p_compat_hash, void *&r_fn_ptr, const StringName &p_fn_name, bool p_compat) const; friend class GDExtensionMethodBind; diff --git a/core/object/script_language_extension.h b/core/object/script_language_extension.h index e10c666b82..52142d8eae 100644 --- a/core/object/script_language_extension.h +++ b/core/object/script_language_extension.h @@ -30,8 +30,8 @@ #pragma once -#include "core/extension/ext_wrappers.gen.inc" -#include "core/object/gdvirtual.gen.inc" +#include "core/extension/ext_wrappers.gen.h" +#include "core/object/gdvirtual.gen.h" #include "core/object/script_language.h" #include "core/variant/native_ptr.h" #include "core/variant/typed_array.h" diff --git a/core/os/main_loop.h b/core/os/main_loop.h index f17865eb66..d7e1d60f88 100644 --- a/core/os/main_loop.h +++ b/core/os/main_loop.h @@ -30,7 +30,7 @@ #pragma once -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/object.h" class MainLoop : public Object { diff --git a/core/string/translation.h b/core/string/translation.h index 549ff7ca9d..83bcadb3c7 100644 --- a/core/string/translation.h +++ b/core/string/translation.h @@ -31,7 +31,7 @@ #pragma once #include "core/io/resource.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" class PluralRules; diff --git a/editor/export/editor_export_platform_extension.h b/editor/export/editor_export_platform_extension.h index 87f9424ac7..88912b048d 100644 --- a/editor/export/editor_export_platform_extension.h +++ b/editor/export/editor_export_platform_extension.h @@ -30,7 +30,7 @@ #pragma once -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/variant/typed_array.h" #include "editor/export/editor_export_platform.h" #include "editor/export/editor_export_preset.h" diff --git a/editor/inspector/editor_context_menu_plugin.h b/editor/inspector/editor_context_menu_plugin.h index 49142c99fb..5847aa2a43 100644 --- a/editor/inspector/editor_context_menu_plugin.h +++ b/editor/inspector/editor_context_menu_plugin.h @@ -30,7 +30,7 @@ #pragma once -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/ref_counted.h" class InputEvent; diff --git a/editor/inspector/editor_resource_tooltip_plugins.h b/editor/inspector/editor_resource_tooltip_plugins.h index 5e6ddc3e6c..5ec8e74d82 100644 --- a/editor/inspector/editor_resource_tooltip_plugins.h +++ b/editor/inspector/editor_resource_tooltip_plugins.h @@ -30,7 +30,7 @@ #pragma once -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/ref_counted.h" #include "scene/gui/control.h" diff --git a/editor/plugins/editor_resource_conversion_plugin.h b/editor/plugins/editor_resource_conversion_plugin.h index 758ced16e2..65718429fa 100644 --- a/editor/plugins/editor_resource_conversion_plugin.h +++ b/editor/plugins/editor_resource_conversion_plugin.h @@ -31,7 +31,7 @@ #pragma once #include "core/io/resource.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" class EditorResourceConversionPlugin : public RefCounted { GDCLASS(EditorResourceConversionPlugin, RefCounted); diff --git a/editor/script/editor_script.h b/editor/script/editor_script.h index 62d6553cdf..3abc22b52c 100644 --- a/editor/script/editor_script.h +++ b/editor/script/editor_script.h @@ -30,7 +30,7 @@ #pragma once -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/ref_counted.h" class EditorInterface; diff --git a/editor/translations/editor_translation_parser.h b/editor/translations/editor_translation_parser.h index 7f0f5d1b30..f122413d57 100644 --- a/editor/translations/editor_translation_parser.h +++ b/editor/translations/editor_translation_parser.h @@ -30,7 +30,7 @@ #pragma once -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/ref_counted.h" #include "core/variant/typed_array.h" diff --git a/editor/version_control/editor_vcs_interface.h b/editor/version_control/editor_vcs_interface.h index a0d80d7929..eb5012998d 100644 --- a/editor/version_control/editor_vcs_interface.h +++ b/editor/version_control/editor_vcs_interface.h @@ -30,7 +30,7 @@ #pragma once -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/string/ustring.h" #include "core/variant/typed_array.h" diff --git a/modules/openxr/extensions/openxr_extension_wrapper.h b/modules/openxr/extensions/openxr_extension_wrapper.h index b23f54b859..47b5e37d43 100644 --- a/modules/openxr/extensions/openxr_extension_wrapper.h +++ b/modules/openxr/extensions/openxr_extension_wrapper.h @@ -33,7 +33,7 @@ #include "core/error/error_macros.h" #include "core/math/projection.h" #include "core/object/class_db.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/ref_counted.h" #include "core/templates/hash_map.h" #include "core/templates/rid.h" diff --git a/modules/openxr/openxr_structure.h b/modules/openxr/openxr_structure.h index 057052db6a..1f06c82d58 100644 --- a/modules/openxr/openxr_structure.h +++ b/modules/openxr/openxr_structure.h @@ -30,7 +30,7 @@ #pragma once -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/ref_counted.h" #include "openxr_util.h" #include "util.h" diff --git a/modules/text_server_adv/text_server_adv.h b/modules/text_server_adv/text_server_adv.h index 530ce53c75..f45db6b4de 100644 --- a/modules/text_server_adv/text_server_adv.h +++ b/modules/text_server_adv/text_server_adv.h @@ -81,7 +81,7 @@ using namespace godot; #elif defined(GODOT_MODULE) // Headers for building as built-in module. -#include "core/extension/ext_wrappers.gen.inc" +#include "core/extension/ext_wrappers.gen.h" #include "core/templates/hash_map.h" #include "core/templates/rid_owner.h" #include "core/templates/safe_refcount.h" diff --git a/modules/text_server_fb/text_server_fb.h b/modules/text_server_fb/text_server_fb.h index 89a0edeccb..83c5bd7f16 100644 --- a/modules/text_server_fb/text_server_fb.h +++ b/modules/text_server_fb/text_server_fb.h @@ -79,7 +79,7 @@ using namespace godot; #elif defined(GODOT_MODULE) // Headers for building as built-in module. -#include "core/extension/ext_wrappers.gen.inc" +#include "core/extension/ext_wrappers.gen.h" #include "core/object/worker_thread_pool.h" #include "core/templates/hash_map.h" #include "core/templates/rid_owner.h" diff --git a/modules/webrtc/webrtc_data_channel_extension.h b/modules/webrtc/webrtc_data_channel_extension.h index ff7a53b291..d632cedbe9 100644 --- a/modules/webrtc/webrtc_data_channel_extension.h +++ b/modules/webrtc/webrtc_data_channel_extension.h @@ -32,8 +32,8 @@ #include "webrtc_data_channel.h" -#include "core/extension/ext_wrappers.gen.inc" -#include "core/object/gdvirtual.gen.inc" +#include "core/extension/ext_wrappers.gen.h" +#include "core/object/gdvirtual.gen.h" #include "core/variant/native_ptr.h" class WebRTCDataChannelExtension : public WebRTCDataChannel { diff --git a/modules/webrtc/webrtc_peer_connection_extension.h b/modules/webrtc/webrtc_peer_connection_extension.h index 1d3139ea8b..76f26ff2e6 100644 --- a/modules/webrtc/webrtc_peer_connection_extension.h +++ b/modules/webrtc/webrtc_peer_connection_extension.h @@ -32,8 +32,8 @@ #include "webrtc_peer_connection.h" -#include "core/extension/ext_wrappers.gen.inc" -#include "core/object/gdvirtual.gen.inc" +#include "core/extension/ext_wrappers.gen.h" +#include "core/object/gdvirtual.gen.h" class WebRTCPeerConnectionExtension : public WebRTCPeerConnection { GDCLASS(WebRTCPeerConnectionExtension, WebRTCPeerConnection); diff --git a/scene/gui/control.h b/scene/gui/control.h index 28dcd43ff1..1d06cbb473 100644 --- a/scene/gui/control.h +++ b/scene/gui/control.h @@ -31,7 +31,7 @@ #pragma once #include "core/math/transform_2d.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "scene/main/canvas_item.h" #include "scene/resources/theme.h" diff --git a/scene/gui/rich_text_effect.h b/scene/gui/rich_text_effect.h index 8e8c45ae82..d33d953964 100644 --- a/scene/gui/rich_text_effect.h +++ b/scene/gui/rich_text_effect.h @@ -31,7 +31,7 @@ #pragma once #include "core/io/resource.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" class CharFXTransform : public RefCounted { GDCLASS(CharFXTransform, RefCounted); diff --git a/scene/main/multiplayer_peer.h b/scene/main/multiplayer_peer.h index 90921b7a92..24ac4f871f 100644 --- a/scene/main/multiplayer_peer.h +++ b/scene/main/multiplayer_peer.h @@ -32,8 +32,8 @@ #include "core/io/packet_peer.h" -#include "core/extension/ext_wrappers.gen.inc" -#include "core/object/gdvirtual.gen.inc" +#include "core/extension/ext_wrappers.gen.h" +#include "core/object/gdvirtual.gen.h" #include "core/variant/native_ptr.h" class MultiplayerPeer : public PacketPeer { diff --git a/scene/resources/compositor.h b/scene/resources/compositor.h index 547970c06f..648be5ab8a 100644 --- a/scene/resources/compositor.h +++ b/scene/resources/compositor.h @@ -31,7 +31,7 @@ #pragma once #include "core/io/resource.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "servers/rendering/storage/render_data.h" /* Compositor Effect */ diff --git a/scene/resources/style_box.h b/scene/resources/style_box.h index 79796f0c3e..9dc57d1e87 100644 --- a/scene/resources/style_box.h +++ b/scene/resources/style_box.h @@ -31,7 +31,7 @@ #pragma once #include "core/io/resource.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" class CanvasItem; diff --git a/scene/resources/syntax_highlighter.h b/scene/resources/syntax_highlighter.h index 52ad2a2237..31c4b46808 100644 --- a/scene/resources/syntax_highlighter.h +++ b/scene/resources/syntax_highlighter.h @@ -31,7 +31,7 @@ #pragma once #include "core/io/resource.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/templates/rb_map.h" class TextEdit; diff --git a/servers/audio/audio_effect.h b/servers/audio/audio_effect.h index 1ecb1e4ed2..06cd8fe37b 100644 --- a/servers/audio/audio_effect.h +++ b/servers/audio/audio_effect.h @@ -32,7 +32,7 @@ #include "core/io/resource.h" #include "core/math/audio_frame.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/variant/native_ptr.h" class AudioEffectInstance : public RefCounted { diff --git a/servers/audio/audio_stream.h b/servers/audio/audio_stream.h index ea768655b3..8bb5dbaf6f 100644 --- a/servers/audio/audio_stream.h +++ b/servers/audio/audio_stream.h @@ -34,7 +34,7 @@ #include "scene/property_list_helper.h" #include "servers/audio/audio_server.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/variant/native_ptr.h" #include "core/variant/typed_array.h" diff --git a/servers/physics_2d/physics_server_2d_extension.h b/servers/physics_2d/physics_server_2d_extension.h index 1145ec9f80..506e9c5240 100644 --- a/servers/physics_2d/physics_server_2d_extension.h +++ b/servers/physics_2d/physics_server_2d_extension.h @@ -30,8 +30,8 @@ #pragma once -#include "core/extension/ext_wrappers.gen.inc" -#include "core/object/gdvirtual.gen.inc" +#include "core/extension/ext_wrappers.gen.h" +#include "core/object/gdvirtual.gen.h" #include "core/variant/native_ptr.h" #include "core/variant/typed_array.h" #include "servers/physics_2d/physics_server_2d.h" diff --git a/servers/physics_3d/physics_server_3d.h b/servers/physics_3d/physics_server_3d.h index 77536d60ea..3738c1ee70 100644 --- a/servers/physics_3d/physics_server_3d.h +++ b/servers/physics_3d/physics_server_3d.h @@ -31,7 +31,7 @@ #pragma once #include "core/io/resource.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" constexpr int MAX_CONTACTS_REPORTED_3D_MAX = 4096; diff --git a/servers/physics_3d/physics_server_3d_extension.h b/servers/physics_3d/physics_server_3d_extension.h index de7e25715c..086208e74d 100644 --- a/servers/physics_3d/physics_server_3d_extension.h +++ b/servers/physics_3d/physics_server_3d_extension.h @@ -30,7 +30,7 @@ #pragma once -#include "core/extension/ext_wrappers.gen.inc" +#include "core/extension/ext_wrappers.gen.h" #include "core/object/script_language.h" #include "core/variant/native_ptr.h" #include "core/variant/typed_array.h" diff --git a/servers/rendering/storage/render_scene_data.h b/servers/rendering/storage/render_scene_data.h index a201f97358..033f425449 100644 --- a/servers/rendering/storage/render_scene_data.h +++ b/servers/rendering/storage/render_scene_data.h @@ -31,7 +31,7 @@ #pragma once #include "core/object/class_db.h" -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/object/object.h" #include "core/object/script_language.h" diff --git a/servers/text/text_server_extension.h b/servers/text/text_server_extension.h index b5b16e97a8..1d81f7ad26 100644 --- a/servers/text/text_server_extension.h +++ b/servers/text/text_server_extension.h @@ -30,7 +30,7 @@ #pragma once -#include "core/object/gdvirtual.gen.inc" +#include "core/object/gdvirtual.gen.h" #include "core/os/thread_safe.h" #include "core/variant/native_ptr.h" #include "core/variant/typed_array.h"