Merge pull request #117301 from akien-mga/clangd-unused-includes-core
Remove unused includes in `core` with clangd-tidy
This commit is contained in:
commit
d103efb6ea
85 changed files with 129 additions and 71 deletions
|
|
@ -30,8 +30,8 @@
|
|||
|
||||
#include "project_settings.h"
|
||||
|
||||
#include "core/core_bind.h" // For Compression enum.
|
||||
#include "core/input/input_map.h"
|
||||
#include "core/io/compression.h"
|
||||
#include "core/io/config_file.h"
|
||||
#include "core/io/dir_access.h"
|
||||
#include "core/io/file_access.h"
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
#ifdef TOOLS_ENABLED
|
||||
#include "core/config/engine.h"
|
||||
#include "modules/modules_enabled.gen.h" // For mono.
|
||||
#include "modules/modules_enabled.gen.h" // IWYU pragma: keep. For mono.
|
||||
#endif // TOOLS_ENABLED
|
||||
|
||||
ProjectSettings *ProjectSettings::get_singleton() {
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "core/object/object.h"
|
||||
#include "core/os/thread_safe.h"
|
||||
#include "core/templates/rb_map.h"
|
||||
|
||||
template <typename T>
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ def encryption_key_builder(target, source, env):
|
|||
with methods.generated_wrapper(str(target[0])) as file:
|
||||
file.write(
|
||||
f"""\
|
||||
#include "core/config/project_settings.h"
|
||||
#include <cstdint>
|
||||
|
||||
uint8_t script_encryption_key[32] = {{
|
||||
{methods.format_buffer(buffer, 1)}
|
||||
|
|
|
|||
|
|
@ -30,10 +30,13 @@
|
|||
|
||||
#include "core_constants.h"
|
||||
|
||||
#include "core/input/input_event.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/input/input_enums.h"
|
||||
#include "core/object/method_bind.h" // IWYU pragma: keep. To bind `MethodFlags`.
|
||||
#include "core/object/object.h"
|
||||
#include "core/os/keyboard.h"
|
||||
#include "core/variant/type_info.h"
|
||||
#include "core/variant/variant.h"
|
||||
#include "core/variant/variant_caster.h"
|
||||
|
||||
struct _CoreConstant {
|
||||
#ifdef DEBUG_ENABLED
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
#include "crypto_core.h"
|
||||
|
||||
#include "core/os/os.h"
|
||||
#include "core/string/ustring.h"
|
||||
|
||||
#include <mbedtls/aes.h>
|
||||
#include <mbedtls/base64.h>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "core/error/error_list.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class String;
|
||||
|
||||
class CryptoCore {
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#include "engine_profiler.h"
|
||||
|
||||
#include "core/debugger/engine_debugger.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/object/class_db.h" // IWYU pragma: keep. `GDVIRTUAL_BIND` macro.
|
||||
|
||||
void EngineProfiler::_bind_methods() {
|
||||
GDVIRTUAL_BIND(_toggle, "enable", "options");
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "core/debugger/engine_debugger.h"
|
||||
#include "core/object/script_language.h"
|
||||
#include "core/templates/list.h"
|
||||
|
||||
class LocalDebugger : public EngineDebugger {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@
|
|||
#include "core/debugger/debugger_marshalls.h"
|
||||
#include "core/debugger/engine_debugger.h"
|
||||
#include "core/debugger/remote_debugger_peer.h"
|
||||
#include "core/string/string_name.h"
|
||||
#include "core/string/ustring.h"
|
||||
#include "core/variant/array.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,9 @@
|
|||
|
||||
#include "core/config/project_settings.h"
|
||||
#include "core/io/marshalls.h"
|
||||
#include "core/io/stream_peer_socket.h"
|
||||
#include "core/io/stream_peer_tcp.h"
|
||||
#include "core/io/stream_peer_uds.h"
|
||||
#include "core/os/os.h"
|
||||
|
||||
bool RemoteDebuggerPeerTCP::is_peer_connected() {
|
||||
|
|
|
|||
|
|
@ -30,13 +30,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/io/stream_peer_tcp.h"
|
||||
#include "core/io/stream_peer_uds.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "core/os/mutex.h"
|
||||
#include "core/os/thread.h"
|
||||
#include "core/string/ustring.h"
|
||||
|
||||
class StreamPeerSocket;
|
||||
|
||||
class RemoteDebuggerPeer : public RefCounted {
|
||||
GDSOFTCLASS(RemoteDebuggerPeer, RefCounted);
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@
|
|||
|
||||
#include "doc_data.h"
|
||||
|
||||
#include "core/object/object.h"
|
||||
|
||||
String DocData::get_default_value_string(const Variant &p_value) {
|
||||
const Variant::Type type = p_value.get_type();
|
||||
if (type == Variant::ARRAY) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/io/xml_parser.h"
|
||||
#include "core/variant/variant.h"
|
||||
|
||||
class DocData {
|
||||
|
|
|
|||
|
|
@ -30,14 +30,17 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/extension/gdextension.h"
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
|
||||
#include "core/error/error_list.h"
|
||||
#include "core/string/ustring.h"
|
||||
#include "core/variant/dictionary.h"
|
||||
|
||||
class GDExtensionAPIDump {
|
||||
public:
|
||||
static Dictionary generate_extension_api(bool p_include_docs = false);
|
||||
static void generate_extension_json_file(const String &p_path, bool p_include_docs = false);
|
||||
static Error validate_extension_json_file(const String &p_path);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
#include "core/extension/gdextension_interface.gen.h"
|
||||
#include "core/extension/gdextension_loader.h"
|
||||
#include "core/io/config_file.h"
|
||||
#include "core/io/resource_loader.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "core/extension/gdextension_loader.h"
|
||||
#include "core/os/shared_object.h"
|
||||
|
||||
class GDExtension;
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
|
||||
#include "compression.h"
|
||||
|
||||
#include "core/config/project_settings.h"
|
||||
#include "core/io/zip_io.h"
|
||||
|
||||
#include "thirdparty/misc/fastlz.h"
|
||||
|
|
|
|||
|
|
@ -30,6 +30,10 @@
|
|||
|
||||
#include "delta_encoding.h"
|
||||
|
||||
#include "core/error/error_list.h"
|
||||
#include "core/templates/vector.h"
|
||||
#include "core/variant/variant.h" // vformat
|
||||
|
||||
#include <zstd.h>
|
||||
|
||||
#define ERR_FAIL_ZSTD_V_MSG(m_result, m_retval, m_msg) \
|
||||
|
|
|
|||
|
|
@ -30,7 +30,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/io/file_access.h"
|
||||
#include "core/templates/span.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
template <typename T>
|
||||
class Vector;
|
||||
|
||||
class DeltaEncoding {
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/io/net_socket.h"
|
||||
#include "core/io/packet_peer_dtls.h"
|
||||
|
||||
class DTLSServer : public RefCounted {
|
||||
|
|
|
|||
|
|
@ -31,9 +31,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "core/crypto/crypto.h"
|
||||
#include "core/io/ip.h"
|
||||
#include "core/io/stream_peer.h"
|
||||
#include "core/io/stream_peer_tcp.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
|
||||
class HTTPClient : public RefCounted {
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include "http_client_tcp.h"
|
||||
|
||||
#include "core/io/stream_peer_tcp.h"
|
||||
#include "core/io/stream_peer_tls.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/os/os.h"
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@
|
|||
#include "http_client.h"
|
||||
|
||||
#include "core/crypto/crypto.h"
|
||||
#include "core/io/ip.h"
|
||||
|
||||
class StreamPeerTCP;
|
||||
|
||||
class HTTPClientTCP : public HTTPClient {
|
||||
GDSOFTCLASS(HTTPClientTCP, HTTPClient);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/io/ip.h"
|
||||
#include "core/io/ip_address.h"
|
||||
#include "core/io/net_socket.h"
|
||||
#include "core/io/packet_peer.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
#include "core/math/random_pcg.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/os/os.h"
|
||||
#include "core/variant/container_type_validate.h"
|
||||
#include "core/variant/container_type_validate.h" // IWYU pragma: keep.
|
||||
#include "scene/main/node.h" //only so casting works
|
||||
|
||||
void Resource::register_custom_data_to_otdb() {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/io/resource_uid.h"
|
||||
#include "core/io/resource_uid.h" // IWYU pragma: export. Make available to all resources.
|
||||
#include "core/object/gdvirtual.gen.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "core/templates/self_list.h"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
#include "core/io/stream_peer.h"
|
||||
|
||||
#include "core/io/compression.h"
|
||||
#include "core/templates/ring_buffer.h"
|
||||
|
||||
class StreamPeerGZIP : public StreamPeer {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/io/ip.h"
|
||||
#include "core/io/ip_address.h"
|
||||
#include "core/io/stream_peer_socket.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
|
||||
#include "stream_peer_tls.h"
|
||||
|
||||
#include "core/config/engine.h"
|
||||
#include "core/object/class_db.h"
|
||||
|
||||
StreamPeerTLS *(*StreamPeerTLS::_create)(bool p_notify_postinitialize) = nullptr;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/io/ip.h"
|
||||
#include "core/io/ip_address.h"
|
||||
#include "core/io/socket_server.h"
|
||||
#include "core/io/stream_peer_tcp.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -32,11 +32,9 @@
|
|||
|
||||
#include "core/io/file_access.h"
|
||||
|
||||
// Not directly used in this header, but assumed available in downstream users
|
||||
// like platform/*/export/export.cpp. Could be fixed, but probably better to have
|
||||
// thirdparty includes in as little headers as possible.
|
||||
#include "thirdparty/minizip/unzip.h"
|
||||
#include "thirdparty/minizip/zip.h"
|
||||
// This file serves as the Godot interface to minizip.
|
||||
#include "thirdparty/minizip/unzip.h" // IWYU pragma: export
|
||||
#include "thirdparty/minizip/zip.h" // IWYU pragma: export
|
||||
|
||||
// Get the current file info and safely convert the full filepath to a String.
|
||||
int godot_unzip_get_current_file_info(unzFile p_zip_file, unz_file_info64 &r_file_info, String &r_filepath);
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@
|
|||
#include "core/math/geometry_3d.h"
|
||||
#include "core/os/mutex.h"
|
||||
|
||||
#include <climits> // INT_MAX
|
||||
|
||||
#define BVHTREE_CLASS BVH_Tree<T, NUM_TREES, 2, MAX_ITEMS, USER_PAIR_TEST_FUNCTION, USER_CULL_TEST_FUNCTION, USE_PAIRS, BOUNDS, POINT>
|
||||
#define BVH_LOCKED_FUNCTION BVHLockedFunction _lock_guard(&_mutex, BVH_THREAD_SAFE &&_thread_safe);
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include "core/math/aabb.h"
|
||||
|
||||
#include <cfloat> // FLT_MAX
|
||||
|
||||
// special optimized version of axis aligned bounding box
|
||||
template <typename BOUNDS = AABB, typename POINT = Vector3>
|
||||
struct BVH_ABB {
|
||||
|
|
|
|||
|
|
@ -44,8 +44,6 @@
|
|||
#include "core/templates/local_vector.h"
|
||||
#include "core/templates/pooled_list.h"
|
||||
|
||||
#include <climits>
|
||||
|
||||
#define BVHABB_CLASS BVH_ABB<BOUNDS, POINT>
|
||||
|
||||
// not sure if this is better yet so making optional
|
||||
|
|
|
|||
|
|
@ -64,6 +64,8 @@ subject to the following restrictions:
|
|||
#include "core/templates/a_hash_map.h"
|
||||
#include "core/templates/paged_allocator.h"
|
||||
|
||||
#include <cfloat> // FLT_MAX
|
||||
|
||||
//#define DEBUG_CONVEX_HULL
|
||||
//#define SHOW_ITERATIONS
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
#include "core/math/math_defs.h"
|
||||
#include "core/typedefs.h"
|
||||
|
||||
#include <cfloat>
|
||||
#include <cmath>
|
||||
|
||||
namespace Math {
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@
|
|||
|
||||
#include "thirdparty/misc/pcg.h"
|
||||
|
||||
#include <cmath> // ldexp
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#define CLZ32(x) __builtin_clz(x)
|
||||
#elif defined(_MSC_VER)
|
||||
|
|
@ -122,14 +124,14 @@ public:
|
|||
if (temp < CMP_EPSILON) {
|
||||
temp += CMP_EPSILON; // To prevent generating of INF value in log function, resulting to return NaN value from this function.
|
||||
}
|
||||
return p_mean + p_deviation * (std::cos(Math::TAU * randd()) * std::sqrt(-2.0 * std::log(temp))); // Box-Muller transform.
|
||||
return p_mean + p_deviation * (Math::cos(Math::TAU * randd()) * Math::sqrt(-2.0 * Math::log(temp))); // Box-Muller transform.
|
||||
}
|
||||
_FORCE_INLINE_ float randfn(float p_mean, float p_deviation) {
|
||||
float temp = randf();
|
||||
if (temp < CMP_EPSILON) {
|
||||
temp += CMP_EPSILON; // To prevent generating of INF value in log function, resulting to return NaN value from this function.
|
||||
}
|
||||
return p_mean + p_deviation * (std::cos((float)Math::TAU * randf()) * std::sqrt(-2.0 * std::log(temp))); // Box-Muller transform.
|
||||
return p_mean + p_deviation * (Math::cos((float)Math::TAU * randf()) * Math::sqrt(-2.0 * Math::log(temp))); // Box-Muller transform.
|
||||
}
|
||||
|
||||
double random(double p_from, double p_to);
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ inline constexpr bool is_class_enabled_v = is_class_enabled<T>::value;
|
|||
|
||||
#define GD_IS_CLASS_ENABLED(m_class) is_class_enabled_v<m_class>
|
||||
|
||||
#include "core/disabled_classes.gen.h"
|
||||
#include "core/disabled_classes.gen.h" // IWYU pragma: keep.
|
||||
|
||||
#define DEFVAL(m_defval) (m_defval)
|
||||
#define DEFVAL_ARRAY DEFVAL(ClassDB::default_array_arg)
|
||||
|
|
|
|||
|
|
@ -196,10 +196,12 @@ def run(target, source, env):
|
|||
txt = """/* THIS FILE IS GENERATED DO NOT EDIT */
|
||||
#pragma once
|
||||
|
||||
// IWYU pragma: begin_keep
|
||||
#include "core/object/script_instance.h"
|
||||
#include "core/variant/method_ptrcall.h"
|
||||
#include "core/variant/variant_caster.h"
|
||||
#include "core/variant/variant_internal.h"
|
||||
// IWYU pragma: end_keep
|
||||
|
||||
inline constexpr uintptr_t _INVALID_GDVIRTUAL_FUNC_ADDR = static_cast<uintptr_t>(-1);
|
||||
|
||||
|
|
|
|||
|
|
@ -31,8 +31,6 @@
|
|||
#include "message_queue.h"
|
||||
|
||||
#include "core/config/project_settings.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/object/script_language.h"
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@
|
|||
#include "core/extension/gdextension_interface.gen.h"
|
||||
#include "core/object/gdtype.h"
|
||||
#include "core/object/object_id.h"
|
||||
#include "core/os/mutex.h"
|
||||
#include "core/os/spin_lock.h"
|
||||
#include "core/os/thread_safe.h"
|
||||
#include "core/templates/hash_map.h"
|
||||
#include "core/templates/hash_set.h"
|
||||
#include "core/templates/list.h"
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#include "ref_counted.h"
|
||||
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/object/script_language.h"
|
||||
#include "core/object/script_instance.h"
|
||||
|
||||
bool RefCounted::init_ref() {
|
||||
if (reference()) {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
#include "core/io/resource_loader.h"
|
||||
#include "core/object/callable_mp.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/os/os.h"
|
||||
#include "core/templates/sort_array.h"
|
||||
|
||||
ScriptLanguage *ScriptServer::_languages[MAX_LANGUAGES];
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@
|
|||
#include "core/os/thread.h"
|
||||
#include "core/templates/local_vector.h"
|
||||
#include "core/templates/paged_allocator.h"
|
||||
#include "core/templates/rid.h"
|
||||
#include "core/templates/safe_refcount.h"
|
||||
#include "core/templates/self_list.h"
|
||||
#include "core/variant/callable.h"
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#include "platform_config.h"
|
||||
#include "platform_config.h" // IWYU pragma: keep. Can override the implementation.
|
||||
|
||||
#ifndef PLATFORM_THREAD_OVERRIDE // See details in thread.h.
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "platform_config.h"
|
||||
#include "platform_config.h" // IWYU pragma: keep. Can override the implementation.
|
||||
|
||||
// Define PLATFORM_THREAD_OVERRIDE in your platform's `platform_config.h`
|
||||
// to use a custom Thread implementation defined in `platform/[your_platform]/platform_thread.h`.
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "profiling.gen.h"
|
||||
#include "profiling.gen.h" // IWYU pragma: keep.
|
||||
|
||||
// This header provides profiling primitives (implemented as macros) for various backends.
|
||||
// See the "No profiling" branch at the bottom for a short description of the functions.
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ STATIC_ASSERT_INCOMPLETE_TYPE(class, Object);
|
|||
#include "core/math/color.h"
|
||||
#include "core/math/math_funcs.h"
|
||||
#include "core/object/object.h"
|
||||
#include "core/os/memory.h"
|
||||
#include "core/os/os.h"
|
||||
#include "core/string/print_string.h"
|
||||
#include "core/string/string_name.h"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include "core/error/error_macros.h"
|
||||
#include "core/os/memory.h"
|
||||
#include "core/string/print_string.h"
|
||||
#include "core/string/print_string.h" // IWYU pragma: keep. `WARN_VERBOSE` macro.
|
||||
#include "core/templates/safe_refcount.h"
|
||||
#include "core/templates/span.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "core/os/memory.h"
|
||||
#include "core/string/print_string.h"
|
||||
#include "core/string/print_string.h" // IWYU pragma: keep. `WARN_VERBOSE` macro.
|
||||
#include "core/templates/hashfuncs.h"
|
||||
#include "core/templates/pair.h"
|
||||
#include "core/templates/sort_list.h"
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "core/os/memory.h"
|
||||
#include "core/string/print_string.h"
|
||||
#include "core/string/print_string.h" // IWYU pragma: keep. `WARN_VERBOSE` macro.
|
||||
#include "core/templates/hashfuncs.h"
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include "core/error/error_macros.h"
|
||||
#include "core/os/memory.h"
|
||||
#include "core/string/print_string.h"
|
||||
#include "core/string/print_string.h" // IWYU pragma: keep. `WARN_VERBOSE` macro.
|
||||
#include "core/templates/sort_array.h"
|
||||
#include "core/templates/vector.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -38,10 +38,6 @@ STATIC_ASSERT_INCOMPLETE_TYPE(class, String);
|
|||
#include "core/templates/safe_refcount.h"
|
||||
#include "core/variant/container_type_validate.h"
|
||||
#include "core/variant/variant.h"
|
||||
// required in this order by VariantInternal, do not remove this comment.
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/object/object.h"
|
||||
#include "core/variant/type_info.h"
|
||||
#include "core/variant/variant_internal.h"
|
||||
|
||||
struct DictionaryPrivate {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/core_string_names.h"
|
||||
#include "core/core_string_names.h" // IWYU pragma: export. Make available everywhere.
|
||||
#include "core/error/error_macros.h"
|
||||
#include "core/io/ip_address.h"
|
||||
#include "core/math/aabb.h"
|
||||
|
|
|
|||
|
|
@ -30,14 +30,15 @@
|
|||
|
||||
#include "variant.h"
|
||||
|
||||
#include "core/crypto/crypto_core.h"
|
||||
#include "core/debugger/engine_debugger.h"
|
||||
#include "core/io/compression.h"
|
||||
#include "core/io/marshalls.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/os/os.h"
|
||||
#include "core/templates/a_hash_map.h"
|
||||
#include "core/templates/local_vector.h"
|
||||
#include "core/variant/binder_common.h"
|
||||
#include "core/variant/method_ptrcall.h"
|
||||
#include "core/variant/variant_internal.h"
|
||||
|
||||
typedef void (*VariantFunc)(Variant &r_ret, Variant &p_self, const Variant **p_args);
|
||||
typedef void (*VariantConstructFunc)(Variant &r_ret, const Variant **p_args);
|
||||
|
|
|
|||
|
|
@ -32,13 +32,8 @@
|
|||
|
||||
#include "variant.h"
|
||||
|
||||
#include "core/crypto/crypto_core.h"
|
||||
#include "core/debugger/engine_debugger.h"
|
||||
#include "core/io/compression.h"
|
||||
#include "core/templates/a_hash_map.h"
|
||||
#include "core/templates/local_vector.h"
|
||||
#include "core/variant/binder_common.h"
|
||||
#include "core/variant/native_ptr.h"
|
||||
#include "core/variant/variant_internal.h"
|
||||
|
||||
template <typename T>
|
||||
|
|
|
|||
|
|
@ -32,8 +32,9 @@
|
|||
|
||||
#include "variant.h"
|
||||
|
||||
#include "core/debugger/engine_debugger.h"
|
||||
#include "core/variant/native_ptr.h"
|
||||
#include "core/variant/method_ptrcall.h"
|
||||
#include "core/variant/type_info.h"
|
||||
#include "core/variant/variant_internal.h"
|
||||
|
||||
template <typename Evaluator>
|
||||
class CommonEvaluate {
|
||||
|
|
|
|||
|
|
@ -29,9 +29,10 @@
|
|||
/**************************************************************************/
|
||||
|
||||
#include "variant_setget.h"
|
||||
#include "variant_callable.h"
|
||||
|
||||
#include "core/debugger/engine_debugger.h"
|
||||
#include "core/io/resource.h"
|
||||
#include "core/variant/variant_callable.h"
|
||||
|
||||
struct VariantSetterGetterInfo {
|
||||
void (*setter)(Variant *base, const Variant *value, bool &valid);
|
||||
|
|
|
|||
|
|
@ -32,8 +32,7 @@
|
|||
|
||||
#include "variant.h"
|
||||
|
||||
#include "core/debugger/engine_debugger.h"
|
||||
#include "core/variant/native_ptr.h"
|
||||
#include "core/variant/method_ptrcall.h"
|
||||
#include "core/variant/variant_internal.h"
|
||||
|
||||
/**** NAMED SETTERS AND GETTERS ****/
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
#include "core/io/marshalls.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "core/object/script_language.h"
|
||||
#include "core/os/os.h"
|
||||
#include "core/templates/a_hash_map.h"
|
||||
#include "core/templates/rid.h"
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@
|
|||
#include "scene/gui/tree.h"
|
||||
#include "scene/resources/animation.h"
|
||||
|
||||
#include <cfloat> // FLT_MAX
|
||||
|
||||
class AnimationMarkerEdit;
|
||||
class AnimationTrackEditor;
|
||||
class AnimationTrackEdit;
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
#include "core/io/compression.h"
|
||||
#include "core/io/dir_access.h"
|
||||
#include "core/io/resource_importer.h"
|
||||
#include "core/io/xml_parser.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/object/script_language.h"
|
||||
#include "core/string/translation_server.h"
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@
|
|||
#include "core/doc_data.h"
|
||||
#include "core/templates/rb_set.h"
|
||||
|
||||
class XMLParser;
|
||||
|
||||
class DocTools {
|
||||
public:
|
||||
String version;
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@
|
|||
#include "core/profiling/profiling.h"
|
||||
#include "core/register_core_types.h"
|
||||
#include "core/string/translation_server.h"
|
||||
#include "core/variant/variant_parser.h"
|
||||
#include "core/version.h"
|
||||
#include "drivers/register_driver_types.h"
|
||||
#include "main/app_icon.gen.h"
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@
|
|||
|
||||
#include <manifold/manifold.h>
|
||||
|
||||
#include <cfloat> // FLT_EPSILON
|
||||
|
||||
#ifndef NAVIGATION_3D_DISABLED
|
||||
Callable CSGShape3D::_navmesh_source_geometry_parsing_callback;
|
||||
RID CSGShape3D::_navmesh_source_geometry_parser;
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
#include "editor_import_blend_runner.h"
|
||||
|
||||
#include "core/io/http_client.h"
|
||||
#include "core/io/xml_parser.h"
|
||||
#include "core/object/callable_mp.h"
|
||||
#include "core/os/os.h"
|
||||
#include "editor/editor_node.h"
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@
|
|||
#include "core/object/class_db.h"
|
||||
#include "scene/3d/light_3d.h"
|
||||
|
||||
#include <cfloat> // FLT_MAX
|
||||
|
||||
void GLTFLight::_bind_methods() {
|
||||
ClassDB::bind_static_method("GLTFLight", D_METHOD("from_node", "light_node"), &GLTFLight::from_node);
|
||||
ClassDB::bind_method(D_METHOD("to_node"), &GLTFLight::to_node);
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@
|
|||
#include "godot_collision_solver_3d.h"
|
||||
#include "godot_space_3d.h"
|
||||
|
||||
#include <cfloat> // FLT_MAX
|
||||
|
||||
#define MIN_VELOCITY 0.0001
|
||||
#define MAX_BIAS_ROTATION (Math::PI / 8)
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@
|
|||
#include "core/templates/local_vector.h"
|
||||
#include "servers/navigation_2d/navigation_constants_2d.h"
|
||||
|
||||
#include <cfloat> // FLT_MAX
|
||||
|
||||
class NavBaseIteration2D;
|
||||
|
||||
namespace Nav2D {
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@
|
|||
#include "core/templates/local_vector.h"
|
||||
#include "servers/navigation_3d/navigation_constants_3d.h"
|
||||
|
||||
#include <cfloat> // FLT_MAX
|
||||
|
||||
class NavBaseIteration3D;
|
||||
|
||||
namespace Nav3D {
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include "core/object/class_db.h"
|
||||
|
||||
#include <cfloat> // FLT_MAX
|
||||
|
||||
Vector<Ref<Image>> Noise::_get_seamless_image(int p_width, int p_height, int p_depth, bool p_invert, bool p_in_3d_space, real_t p_blend_skirt, bool p_normalize) const {
|
||||
ERR_FAIL_COND_V(p_width <= 0 || p_height <= 0 || p_depth <= 0, Vector<Ref<Image>>());
|
||||
|
||||
|
|
|
|||
|
|
@ -31,9 +31,13 @@
|
|||
#include "register_types.h"
|
||||
|
||||
#include "core/crypto/crypto_core.h"
|
||||
#include "core/error/error_macros.h"
|
||||
#include "core/os/memory.h"
|
||||
|
||||
#include <xatlas.h>
|
||||
|
||||
#include <cstring>
|
||||
|
||||
extern bool (*array_mesh_lightmap_unwrap_callback)(float p_texel_size, const float *p_vertices, const float *p_normals, int p_vertex_count, const int *p_indices, int p_index_count, const uint8_t *p_cache_data, bool *r_use_cache, uint8_t **r_mesh_cache, int *r_mesh_cache_size, float **r_uv, int **r_vertex, int *r_vertex_count, int **r_index, int *r_index_count, int *r_size_hint_x, int *r_size_hint_y);
|
||||
|
||||
bool xatlas_mesh_lightmap_unwrap_callback(float p_texel_size, const float *p_vertices, const float *p_normals, int p_vertex_count, const int *p_indices, int p_index_count, const uint8_t *p_cache_data, bool *r_use_cache, uint8_t **r_mesh_cache, int *r_mesh_cache_size, float **r_uv, int **r_vertex, int *r_vertex_count, int **r_index, int *r_index_count, int *r_size_hint_x, int *r_size_hint_y) {
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
#include "core/os/mutex.h"
|
||||
#include "core/os/process_id.h"
|
||||
#include "core/os/thread.h"
|
||||
#include "core/os/thread_safe.h"
|
||||
#include "core/templates/local_vector.h"
|
||||
#include "servers/display/display_server.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/os/thread_safe.h"
|
||||
#include "servers/display/display_server.h"
|
||||
|
||||
#define FontVariation __FontVariation
|
||||
|
|
|
|||
|
|
@ -47,7 +47,11 @@
|
|||
#include "scene/resources/navigation_mesh.h"
|
||||
#include "servers/navigation_3d/navigation_server_3d.h"
|
||||
#include "servers/rendering/rendering_server.h"
|
||||
#endif // NAVIGATION_3D_DISABLED
|
||||
|
||||
#include <cfloat> // FLT_EPSILON
|
||||
|
||||
#ifndef NAVIGATION_3D_DISABLED
|
||||
Callable MeshInstance3D::_navmesh_source_geometry_parsing_callback;
|
||||
RID MeshInstance3D::_navmesh_source_geometry_parser;
|
||||
#endif // NAVIGATION_3D_DISABLED
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include "scene/gui/graph_edit.h"
|
||||
|
||||
#include <cfloat> // FLT_MIN, FLT_MAX
|
||||
|
||||
void GraphEditArranger::arrange_nodes() {
|
||||
ERR_FAIL_NULL(graph_edit);
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@
|
|||
#include "scene/theme/theme_db.h"
|
||||
#include "servers/display/accessibility_server.h"
|
||||
|
||||
#include <cfloat> // FLT_MAX
|
||||
|
||||
static inline Color _select_color(const Color &p_override_color, const Color &p_default_color) {
|
||||
return p_override_color.a > 0 ? p_override_color : p_default_color;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
#include "core/object/gdvirtual.gen.h"
|
||||
#include "core/object/object.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "core/os/thread_safe.h"
|
||||
#include "core/templates/iterable.h"
|
||||
#include "scene/scene_string_names.h" // IWYU pragma: export. Make available to all Nodes.
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@
|
|||
#include "scene/resources/mesh.h"
|
||||
#include "servers/physics_3d/physics_server_3d.h"
|
||||
|
||||
#include <cfloat> // FLT_MAX
|
||||
|
||||
Vector<Vector3> HeightMapShape3D::get_debug_mesh_lines() const {
|
||||
Vector<Vector3> points;
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@
|
|||
#include "core/math/convex_hull.h"
|
||||
#endif // PHYSICS_3D_DISABLED
|
||||
|
||||
#include <cfloat> // FLT_EPSILON
|
||||
|
||||
Ref<ImporterMesh> ImporterMesh::merge_importer_meshes(const TypedArray<ImporterMesh> &p_importer_meshes, const TypedArray<Transform3D> &p_relative_transforms, bool p_deduplicate_surfaces) {
|
||||
// Setup and safety checks.
|
||||
const int mesh_count = p_importer_meshes.size();
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@
|
|||
#include "core/math/math_funcs.h"
|
||||
#include "core/object/class_db.h"
|
||||
|
||||
#include <cfloat> // FLT_EPSILON
|
||||
|
||||
const char *Curve::SIGNAL_RANGE_CHANGED = "range_changed";
|
||||
const char *Curve::SIGNAL_DOMAIN_CHANGED = "domain_changed";
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@
|
|||
#include "servers/rendering/rendering_server.h"
|
||||
#include "servers/text/text_server.h"
|
||||
|
||||
#include <cfloat> // FLT_EPSILON
|
||||
|
||||
float StyleBoxFlat::get_style_margin(Side p_side) const {
|
||||
ERR_FAIL_INDEX_V((int)p_side, 4, 0.0);
|
||||
return border_width[p_side];
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/os/thread_safe.h"
|
||||
#include "core/templates/local_vector.h"
|
||||
#include "scene/resources/font.h"
|
||||
#include "servers/text/text_server.h"
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@
|
|||
#include "core/templates/local_vector.h"
|
||||
#include "servers/rendering/rendering_server_enums.h"
|
||||
|
||||
#include <cfloat> // FLT_MIN, FLT_MAX
|
||||
|
||||
class RendererSceneOcclusionCull {
|
||||
protected:
|
||||
static RendererSceneOcclusionCull *singleton;
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ TEST_FORCE_LINK(test_json)
|
|||
#include "core/io/json.h"
|
||||
#include "core/variant/typed_array.h"
|
||||
|
||||
#include <cfloat> // DBL_MAX
|
||||
|
||||
namespace TestJSON {
|
||||
|
||||
TEST_CASE("[JSON] Stringify single data types") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue