Style: Begin integrating simple .clangd fixes

This commit is contained in:
Thaddeus Crews 2025-02-20 08:40:46 -06:00
parent 2303ce843a
commit f09ee0171a
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84
66 changed files with 43 additions and 112 deletions

View File

@ -5,7 +5,6 @@
Diagnostics: Diagnostics:
Includes: Includes:
IgnoreHeader: IgnoreHeader:
- core/typedefs\.h # Our "main" header, featuring transitive includes; allow everywhere.
- \.compat\.inc - \.compat\.inc
--- ---
# Header-specific conditions. # Header-specific conditions.

View File

@ -31,6 +31,7 @@
#include "error_macros.h" #include "error_macros.h"
#include "core/io/logger.h" #include "core/io/logger.h"
#include "core/object/object_id.h"
#include "core/os/os.h" #include "core/os/os.h"
#include "core/string/ustring.h" #include "core/string/ustring.h"

View File

@ -30,12 +30,12 @@
#pragma once #pragma once
#include "core/object/object_id.h"
#include "core/typedefs.h" #include "core/typedefs.h"
#include <atomic> // We'd normally use safe_refcount.h, but that would cause circular includes. #include <atomic> // IWYU pragma: keep // Used in macro. We'd normally use `safe_refcount.h`, but that would cause circular includes.
class String; class String;
class ObjectID;
enum ErrorHandlerType { enum ErrorHandlerType {
ERR_HANDLER_ERROR, ERR_HANDLER_ERROR,

View File

@ -31,7 +31,6 @@
#include "image.h" #include "image.h"
#include "core/config/project_settings.h" #include "core/config/project_settings.h"
#include "core/error/error_list.h"
#include "core/error/error_macros.h" #include "core/error/error_macros.h"
#include "core/io/image_loader.h" #include "core/io/image_loader.h"
#include "core/io/resource_loader.h" #include "core/io/resource_loader.h"

View File

@ -51,6 +51,8 @@
// and pairable_mask is either 0 if static, or set to all if non static // and pairable_mask is either 0 if static, or set to all if non static
#include "bvh_tree.h" #include "bvh_tree.h"
#include "core/math/geometry_3d.h"
#include "core/os/mutex.h" #include "core/os/mutex.h"
#define BVHTREE_CLASS BVH_Tree<T, NUM_TREES, 2, MAX_ITEMS, USER_PAIR_TEST_FUNCTION, USER_CULL_TEST_FUNCTION, USE_PAIRS, BOUNDS, POINT> #define BVHTREE_CLASS BVH_Tree<T, NUM_TREES, 2, MAX_ITEMS, USER_PAIR_TEST_FUNCTION, USER_CULL_TEST_FUNCTION, USE_PAIRS, BOUNDS, POINT>

View File

@ -30,6 +30,8 @@
#pragma once #pragma once
#include "core/math/aabb.h"
// special optimized version of axis aligned bounding box // special optimized version of axis aligned bounding box
template <typename BOUNDS = AABB, typename POINT = Vector3> template <typename BOUNDS = AABB, typename POINT = Vector3>
struct BVH_ABB { struct BVH_ABB {

View File

@ -40,7 +40,6 @@
#include "core/math/aabb.h" #include "core/math/aabb.h"
#include "core/math/bvh_abb.h" #include "core/math/bvh_abb.h"
#include "core/math/geometry_3d.h"
#include "core/math/vector3.h" #include "core/math/vector3.h"
#include "core/templates/local_vector.h" #include "core/templates/local_vector.h"
#include "core/templates/pooled_list.h" #include "core/templates/pooled_list.h"

View File

@ -36,6 +36,8 @@
// the old way leaked memory // the old way leaked memory
// this is not used as often as for more performance to make sense // this is not used as often as for more performance to make sense
#include "core/math/color.h"
struct NamedColor { struct NamedColor {
const char *name; const char *name;
Color color; Color color;

View File

@ -30,14 +30,13 @@
#pragma once #pragma once
#include "core/io/file_access.h"
#include "core/math/aabb.h" #include "core/math/aabb.h"
#include "core/math/projection.h" #include "core/math/projection.h"
#include "core/math/vector3.h" #include "core/math/vector3.h"
#include "core/templates/list.h"
#include "core/templates/local_vector.h" #include "core/templates/local_vector.h"
#include "core/templates/oa_hash_map.h" #include "core/templates/oa_hash_map.h"
#include "core/templates/vector.h" #include "core/templates/vector.h"
#include "core/variant/variant.h"
#include "thirdparty/misc/r128.h" #include "thirdparty/misc/r128.h"

View File

@ -30,7 +30,7 @@
#pragma once #pragma once
#include "core/templates/rb_map.h" #include "core/templates/hash_map.h"
#include "core/templates/vector.h" #include "core/templates/vector.h"
/* This DisjointSet class uses Find with path compression and Union by rank */ /* This DisjointSet class uses Find with path compression and Union by rank */

View File

@ -30,6 +30,8 @@
#include "geometry_3d.h" #include "geometry_3d.h"
#include "core/templates/hash_map.h"
void Geometry3D::get_closest_points_between_segments(const Vector3 &p_p0, const Vector3 &p_p1, const Vector3 &p_q0, const Vector3 &p_q1, Vector3 &r_ps, Vector3 &r_qt) { void Geometry3D::get_closest_points_between_segments(const Vector3 &p_p0, const Vector3 &p_p1, const Vector3 &p_q0, const Vector3 &p_q1, Vector3 &r_ps, Vector3 &r_qt) {
// Based on David Eberly's Computation of Distance Between Line Segments algorithm. // Based on David Eberly's Computation of Distance Between Line Segments algorithm.

View File

@ -32,7 +32,6 @@
#include "core/math/delaunay_3d.h" #include "core/math/delaunay_3d.h"
#include "core/math/face3.h" #include "core/math/face3.h"
#include "core/object/object.h"
#include "core/templates/local_vector.h" #include "core/templates/local_vector.h"
#include "core/templates/vector.h" #include "core/templates/vector.h"

View File

@ -35,8 +35,6 @@
#include "core/math/random_pcg.h" #include "core/math/random_pcg.h"
#include "core/typedefs.h" #include "core/typedefs.h"
#include "thirdparty/misc/pcg.h"
#include <float.h> #include <float.h>
#include <math.h> #include <math.h>

View File

@ -30,6 +30,9 @@
#include "quick_hull.h" #include "quick_hull.h"
#include "core/templates/hash_map.h"
#include "core/templates/hash_set.h"
uint32_t QuickHull::debug_stop_after = 0xFFFFFFFF; uint32_t QuickHull::debug_stop_after = 0xFFFFFFFF;
Error QuickHull::build(const Vector<Vector3> &p_points, Geometry3D::MeshData &r_mesh) { Error QuickHull::build(const Vector<Vector3> &p_points, Geometry3D::MeshData &r_mesh) {

View File

@ -32,16 +32,6 @@
#include "core/object/ref_counted.h" #include "core/object/ref_counted.h"
#if !defined(__aligned)
#if defined(_WIN32) && defined(_MSC_VER)
#define __aligned(...) __declspec(align(__VA_ARGS__))
#else
#define __aligned(...) __attribute__((aligned(__VA_ARGS__)))
#endif
#endif
class StaticRaycaster : public RefCounted { class StaticRaycaster : public RefCounted {
GDCLASS(StaticRaycaster, RefCounted) GDCLASS(StaticRaycaster, RefCounted)
protected: protected:
@ -49,7 +39,7 @@ protected:
public: public:
// Compatible with embree4 rays. // Compatible with embree4 rays.
struct __aligned(16) Ray { struct alignas(16) Ray {
const static unsigned int INVALID_GEOMETRY_ID = ((unsigned int)-1); // from rtcore_common.h const static unsigned int INVALID_GEOMETRY_ID = ((unsigned int)-1); // from rtcore_common.h
/*! Default construction does nothing. */ /*! Default construction does nothing. */

View File

@ -211,8 +211,6 @@ def run(target, source, env):
#include "core/object/script_instance.h" #include "core/object/script_instance.h"
#include <utility>
#ifdef TOOLS_ENABLED #ifdef TOOLS_ENABLED
#define _GDVIRTUAL_TRACK(m_virtual, m_initialized)\\ #define _GDVIRTUAL_TRACK(m_virtual, m_initialized)\\
if (_get_extension()->reloadable) {\\ if (_get_extension()->reloadable) {\\

View File

@ -33,9 +33,8 @@
#include "core/error/error_macros.h" #include "core/error/error_macros.h"
#include "core/templates/safe_refcount.h" #include "core/templates/safe_refcount.h"
#include <stddef.h>
#include <cstring> #include <cstring>
#include <new> #include <new> // IWYU pragma: keep // `new` operators.
#include <type_traits> #include <type_traits>
class Memory { class Memory {

View File

@ -30,11 +30,8 @@
#pragma once #pragma once
#include <cstdint>
#ifdef THREADS_ENABLED #ifdef THREADS_ENABLED
#include "core/error/error_list.h"
#include "core/typedefs.h" #include "core/typedefs.h"
#ifdef DEBUG_ENABLED #ifdef DEBUG_ENABLED
#include "core/error/error_macros.h" #include "core/error/error_macros.h"

View File

@ -30,9 +30,9 @@
#include "translation_po.h" #include "translation_po.h"
#ifdef DEBUG_TRANSLATION_PO
#include "core/io/file_access.h" #include "core/io/file_access.h"
#ifdef DEBUG_TRANSLATION_PO
void TranslationPO::print_translation_map() { void TranslationPO::print_translation_map() {
Error err; Error err;
Ref<FileAccess> file = FileAccess::open("translation_map_print_test.txt", FileAccess::WRITE, &err); Ref<FileAccess> file = FileAccess::open("translation_map_print_test.txt", FileAccess::WRITE, &err);

View File

@ -32,7 +32,7 @@
// Note: _GODOT suffix added to header guard to avoid conflict with ICU header. // Note: _GODOT suffix added to header guard to avoid conflict with ICU header.
#include "core/string/char_utils.h" #include "core/string/char_utils.h" // IWYU pragma: export
#include "core/templates/cowdata.h" #include "core/templates/cowdata.h"
#include "core/templates/vector.h" #include "core/templates/vector.h"
#include "core/typedefs.h" #include "core/typedefs.h"

View File

@ -38,7 +38,6 @@
#include <string.h> #include <string.h>
#include <initializer_list> #include <initializer_list>
#include <type_traits> #include <type_traits>
#include <utility>
template <typename T> template <typename T>
class Vector; class Vector;

View File

@ -30,11 +30,8 @@
#pragma once #pragma once
#include "core/math/math_funcs.h"
#include "core/os/memory.h" #include "core/os/memory.h"
#include "core/templates/hash_map.h"
#include "core/templates/hashfuncs.h" #include "core/templates/hashfuncs.h"
#include "core/templates/paged_allocator.h"
/** /**
* Implementation of Set using a bidi indexed hash map. * Implementation of Set using a bidi indexed hash map.

View File

@ -277,7 +277,7 @@ public:
} }
void sort() { void sort() {
sort_custom<_DefaultComparator<T>>(); sort_custom<Comparator<T>>();
} }
void ordered_insert(T p_val) { void ordered_insert(T p_val) {

View File

@ -30,7 +30,6 @@
#pragma once #pragma once
#include "core/math/math_funcs.h"
#include "hash_map.h" #include "hash_map.h"
#include "list.h" #include "list.h"

View File

@ -30,7 +30,6 @@
#pragma once #pragma once
#include "core/math/math_funcs.h"
#include "core/os/memory.h" #include "core/os/memory.h"
#include "core/templates/hashfuncs.h" #include "core/templates/hashfuncs.h"
#include "core/templates/pair.h" #include "core/templates/pair.h"

View File

@ -37,7 +37,7 @@
#include "core/typedefs.h" #include "core/typedefs.h"
#include <type_traits> #include <type_traits>
#include <typeinfo> #include <typeinfo> // IWYU pragma: keep // Used in macro.
template <typename T, bool thread_safe = false, uint32_t DEFAULT_PAGE_SIZE = 4096> template <typename T, bool thread_safe = false, uint32_t DEFAULT_PAGE_SIZE = 4096>
class PagedAllocator { class PagedAllocator {

View File

@ -38,7 +38,7 @@
#include "core/templates/safe_refcount.h" #include "core/templates/safe_refcount.h"
#include <stdio.h> #include <stdio.h>
#include <typeinfo> #include <typeinfo> // IWYU pragma: keep // Used in macro.
#ifdef SANITIZERS_ENABLED #ifdef SANITIZERS_ENABLED
#ifdef __has_feature #ifdef __has_feature

View File

@ -36,7 +36,6 @@
#include <atomic> #include <atomic>
#include <functional> #include <functional>
#include <initializer_list> #include <initializer_list>
#include <type_traits>
// Design goals for these classes: // Design goals for these classes:
// - Accessing this list with an iterator will never result in a use-after free, // - Accessing this list with an iterator will never result in a use-after free,

View File

@ -37,7 +37,7 @@
#endif #endif
#include <atomic> #include <atomic>
#include <type_traits> #include <type_traits> // IWYU pragma: keep // Used in macro.
// Design goals for these classes: // Design goals for these classes:
// - No automatic conversions or arithmetic operators, // - No automatic conversions or arithmetic operators,

View File

@ -30,9 +30,9 @@
#pragma once #pragma once
#include <core/templates/sort_array.h> #include "core/typedefs.h"
template <typename T, typename Comparator = _DefaultComparator<T>> template <typename T, typename Comparator = Comparator<T>>
class SearchArray { class SearchArray {
public: public:
Comparator compare; Comparator compare;

View File

@ -39,18 +39,13 @@
break; \ break; \
} }
template <typename T>
struct _DefaultComparator {
_FORCE_INLINE_ bool operator()(const T &a, const T &b) const { return (a < b); }
};
#ifdef DEBUG_ENABLED #ifdef DEBUG_ENABLED
#define SORT_ARRAY_VALIDATE_ENABLED true #define SORT_ARRAY_VALIDATE_ENABLED true
#else #else
#define SORT_ARRAY_VALIDATE_ENABLED false #define SORT_ARRAY_VALIDATE_ENABLED false
#endif #endif
template <typename T, typename Comparator = _DefaultComparator<T>, bool Validate = SORT_ARRAY_VALIDATE_ENABLED> template <typename T, typename Comparator = Comparator<T>, bool Validate = SORT_ARRAY_VALIDATE_ENABLED>
class SortArray { class SortArray {
enum { enum {
INTROSORT_THRESHOLD = 16 INTROSORT_THRESHOLD = 16

View File

@ -39,14 +39,11 @@
*/ */
#include "core/error/error_macros.h" #include "core/error/error_macros.h"
#include "core/os/memory.h"
#include "core/templates/cowdata.h" #include "core/templates/cowdata.h"
#include "core/templates/search_array.h" #include "core/templates/search_array.h"
#include "core/templates/sort_array.h" #include "core/templates/sort_array.h"
#include <climits>
#include <initializer_list> #include <initializer_list>
#include <utility>
template <typename T> template <typename T>
class VectorWriteProxy { class VectorWriteProxy {
@ -131,7 +128,7 @@ public:
_FORCE_INLINE_ bool has(const T &p_val) const { return find(p_val) != -1; } _FORCE_INLINE_ bool has(const T &p_val) const { return find(p_val) != -1; }
void sort() { void sort() {
sort_custom<_DefaultComparator<T>>(); sort_custom<Comparator<T>>();
} }
template <typename Comparator, bool Validate = SORT_ARRAY_VALIDATE_ENABLED, typename... Args> template <typename Comparator, bool Validate = SORT_ARRAY_VALIDATE_ENABLED, typename... Args>
@ -147,7 +144,7 @@ public:
} }
Size bsearch(const T &p_value, bool p_before) { Size bsearch(const T &p_value, bool p_before) {
return bsearch_custom<_DefaultComparator<T>>(p_value, p_before); return bsearch_custom<Comparator<T>>(p_value, p_before);
} }
template <typename Comparator, typename Value, typename... Args> template <typename Comparator, typename Value, typename... Args>

View File

@ -30,22 +30,29 @@
#pragma once #pragma once
#include <stddef.h>
/** /**
* Basic definitions and simple functions to be used everywhere. * Basic definitions and simple functions to be used everywhere.
*/ */
// IWYU pragma: always_keep
// Ensure that C++ standard is at least C++17.
// If on MSVC, also ensures that the `Zc:__cplusplus` flag is present.
static_assert(__cplusplus >= 201703L, "Minimum of C++17 required.");
// IWYU pragma: begin_exports
// Include first in case the platform needs to pre-define/include some things. // Include first in case the platform needs to pre-define/include some things.
#include "platform_config.h" #include "platform_config.h"
// Should be available everywhere. // Should be available everywhere.
#include "core/error/error_list.h" #include "core/error/error_list.h"
#include <cstddef>
#include <cstdint> #include <cstdint>
#include <utility> #include <utility>
// Ensure that C++ standard is at least C++17. If on MSVC, also ensures that the `Zc:__cplusplus` flag is present. // IWYU pragma: end_exports
static_assert(__cplusplus >= 201703L);
// Turn argument to string constant: // Turn argument to string constant:
// https://gcc.gnu.org/onlinedocs/cpp/Stringizing.html#Stringizing // https://gcc.gnu.org/onlinedocs/cpp/Stringizing.html#Stringizing

View File

@ -30,7 +30,7 @@
#pragma once #pragma once
#include "core/version_generated.gen.h" #include "core/version_generated.gen.h" // IWYU pragma: export
#include <stdint.h> #include <stdint.h>

View File

@ -30,7 +30,6 @@
#pragma once #pragma once
#include "core/error/error_list.h"
#include "core/os/mutex.h" #include "core/os/mutex.h"
#include "core/string/ustring.h" #include "core/string/ustring.h"
#include "core/templates/rid_owner.h" #include "core/templates/rid_owner.h"

View File

@ -35,8 +35,6 @@
#include "core/config/project_settings.h" #include "core/config/project_settings.h"
#include "core/os/os.h" #include "core/os/os.h"
#include <stdint.h> // INT32_MAX
#include <functiondiscoverykeys.h> #include <functiondiscoverykeys.h>
#include <wrl/client.h> #include <wrl/client.h>

View File

@ -38,7 +38,7 @@
#include "core/object/script_language.h" #include "core/object/script_language.h"
#include "core/os/keyboard.h" #include "core/os/keyboard.h"
#include "core/string/string_builder.h" #include "core/string/string_builder.h"
#include "core/version_generated.gen.h" #include "core/version.h"
#include "editor/doc_data_compressed.gen.h" #include "editor/doc_data_compressed.gen.h"
#include "editor/editor_file_system.h" #include "editor/editor_file_system.h"
#include "editor/editor_main_screen.h" #include "editor/editor_main_screen.h"

View File

@ -30,7 +30,6 @@
#pragma once #pragma once
#include "core/error/error_list.h"
#include "core/object/gdvirtual.gen.inc" #include "core/object/gdvirtual.gen.inc"
#include "core/object/ref_counted.h" #include "core/object/ref_counted.h"
#include "core/variant/typed_array.h" #include "core/variant/typed_array.h"

View File

@ -30,7 +30,6 @@
#pragma once #pragma once
#include "core/error/error_list.h"
#include "core/os/thread.h" #include "core/os/thread.h"
#include "core/typedefs.h" #include "core/typedefs.h"

View File

@ -59,8 +59,6 @@
#include "editor/editor_paths.h" #include "editor/editor_paths.h"
#endif #endif
#include <stdint.h>
/////////////////////////// ///////////////////////////
GDScriptNativeClass::GDScriptNativeClass(const StringName &p_name) { GDScriptNativeClass::GDScriptNativeClass(const StringName &p_name) {

View File

@ -79,7 +79,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <cstdint>
constexpr int COMPONENT_COUNT_FOR_ACCESSOR_TYPE[7] = { constexpr int COMPONENT_COUNT_FOR_ACCESSOR_TYPE[7] = {
1, 2, 3, 4, 4, 9, 16 1, 2, 3, 4, 4, 9, 16

View File

@ -43,7 +43,6 @@
#include "Jolt/Physics/Collision/ContactListener.h" #include "Jolt/Physics/Collision/ContactListener.h"
#include "Jolt/Physics/SoftBody/SoftBodyContactListener.h" #include "Jolt/Physics/SoftBody/SoftBodyContactListener.h"
#include <stdint.h>
#include <new> #include <new>
class JoltShapedObject3D; class JoltShapedObject3D;

View File

@ -38,7 +38,6 @@
#include "Jolt/Core/FixedSizeFreeList.h" #include "Jolt/Core/FixedSizeFreeList.h"
#include "Jolt/Core/JobSystemWithBarrier.h" #include "Jolt/Core/JobSystemWithBarrier.h"
#include <stdint.h>
#include <atomic> #include <atomic>
class JoltJobSystem final : public JPH::JobSystemWithBarrier { class JoltJobSystem final : public JPH::JobSystemWithBarrier {

View File

@ -38,8 +38,6 @@
#include "Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h" #include "Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h"
#include "Jolt/Physics/Collision/ObjectLayer.h" #include "Jolt/Physics/Collision/ObjectLayer.h"
#include <stdint.h>
class JoltLayers final class JoltLayers final
: public JPH::BroadPhaseLayerInterface, : public JPH::BroadPhaseLayerInterface,
public JPH::ObjectLayerPairFilter, public JPH::ObjectLayerPairFilter,

View File

@ -44,8 +44,6 @@
#include "Jolt/Physics/Constraints/Constraint.h" #include "Jolt/Physics/Constraints/Constraint.h"
#include "Jolt/Physics/PhysicsSystem.h" #include "Jolt/Physics/PhysicsSystem.h"
#include <stdint.h>
class JoltArea3D; class JoltArea3D;
class JoltBody3D; class JoltBody3D;
class JoltContactListener3D; class JoltContactListener3D;

View File

@ -66,8 +66,6 @@
#include "editor/node_dock.h" #include "editor/node_dock.h"
#endif #endif
#include <stdint.h>
// Types that will be skipped over (in favor of their base types) when setting up instance bindings. // Types that will be skipped over (in favor of their base types) when setting up instance bindings.
// This must be a superset of `ignored_types` in bindings_generator.cpp. // This must be a superset of `ignored_types` in bindings_generator.cpp.
const Vector<String> ignored_types = {}; const Vector<String> ignored_types = {};

View File

@ -41,8 +41,6 @@
#include "core/variant/dictionary.h" #include "core/variant/dictionary.h"
#include "core/variant/variant.h" #include "core/variant/variant.h"
#include <stdint.h>
class CSharpScript; class CSharpScript;
namespace GDMonoCache { namespace GDMonoCache {

View File

@ -37,8 +37,6 @@
#include "core/os/os.h" #include "core/os/os.h"
#endif #endif
#include <stdint.h>
#ifdef DEBUG_ENABLED #ifdef DEBUG_ENABLED
_FORCE_INLINE_ void SceneMultiplayer::_profile_bandwidth(const String &p_what, int p_value) { _FORCE_INLINE_ void SceneMultiplayer::_profile_bandwidth(const String &p_what, int p_value) {
if (EngineDebugger::is_profiling("multiplayer:bandwidth")) { if (EngineDebugger::is_profiling("multiplayer:bandwidth")) {

View File

@ -35,7 +35,6 @@
#include "packet_buffer.h" #include "packet_buffer.h"
#include "websocket_peer.h" #include "websocket_peer.h"
#include "core/error/error_list.h"
#include "core/io/packet_peer.h" #include "core/io/packet_peer.h"
#include "core/templates/ring_buffer.h" #include "core/templates/ring_buffer.h"

View File

@ -32,7 +32,6 @@
#include "websocket_peer.h" #include "websocket_peer.h"
#include "core/error/error_list.h"
#include "core/io/tcp_server.h" #include "core/io/tcp_server.h"
#include "core/templates/list.h" #include "core/templates/list.h"
#include "scene/main/multiplayer_peer.h" #include "scene/main/multiplayer_peer.h"

View File

@ -31,7 +31,6 @@
#pragma once #pragma once
#include "core/crypto/crypto.h" #include "core/crypto/crypto.h"
#include "core/error/error_list.h"
#include "core/io/packet_peer.h" #include "core/io/packet_peer.h"
class WebSocketPeer : public PacketPeer { class WebSocketPeer : public PacketPeer {

View File

@ -36,7 +36,6 @@
#include "websocket_peer.h" #include "websocket_peer.h"
#include "core/crypto/crypto_core.h" #include "core/crypto/crypto_core.h"
#include "core/error/error_list.h"
#include "core/io/stream_peer_tcp.h" #include "core/io/stream_peer_tcp.h"
#include <wslay/wslay.h> #include <wslay/wslay.h>

View File

@ -33,7 +33,6 @@
#ifndef DISABLE_DEPRECATED #ifndef DISABLE_DEPRECATED
#include "core/config/project_settings.h" #include "core/config/project_settings.h"
#include "core/error/error_list.h"
#include "core/io/config_file.h" #include "core/io/config_file.h"
#include "core/string/ustring.h" #include "core/string/ustring.h"

View File

@ -30,7 +30,6 @@
#include "java_godot_io_wrapper.h" #include "java_godot_io_wrapper.h"
#include "core/error/error_list.h"
#include "core/math/rect2.h" #include "core/math/rect2.h"
#include "core/variant/variant.h" #include "core/variant/variant.h"

View File

@ -40,7 +40,6 @@
#include "core/io/zip_io.h" #include "core/io/zip_io.h"
#include "core/os/os.h" #include "core/os/os.h"
#include "core/templates/safe_refcount.h" #include "core/templates/safe_refcount.h"
#include "core/version.h"
#include "editor/editor_settings.h" #include "editor/editor_settings.h"
#include "editor/export/editor_export_platform.h" #include "editor/export/editor_export_platform.h"
#include "main/splash.gen.h" #include "main/splash.gen.h"

View File

@ -30,7 +30,6 @@
#pragma once #pragma once
#include "core/error/error_list.h"
#include "core/io/config_file.h" #include "core/io/config_file.h"
#include "core/string/ustring.h" #include "core/string/ustring.h"

View File

@ -32,7 +32,6 @@
#if defined(X11_ENABLED) && defined(GLES3_ENABLED) #if defined(X11_ENABLED) && defined(GLES3_ENABLED)
#include "core/error/error_list.h"
#include "core/os/os.h" #include "core/os/os.h"
#include "core/templates/local_vector.h" #include "core/templates/local_vector.h"
#include "drivers/egl/egl_manager.h" #include "drivers/egl/egl_manager.h"

View File

@ -37,7 +37,6 @@
#include "core/io/marshalls.h" #include "core/io/marshalls.h"
#include "core/io/resource_saver.h" #include "core/io/resource_saver.h"
#include "core/os/os.h" #include "core/os/os.h"
#include "core/version.h"
#include "editor/editor_settings.h" #include "editor/editor_settings.h"
#include "editor/export/editor_export.h" #include "editor/export/editor_export.h"

View File

@ -32,7 +32,6 @@
#if defined(MACOS_ENABLED) && defined(GLES3_ENABLED) #if defined(MACOS_ENABLED) && defined(GLES3_ENABLED)
#include "core/error/error_list.h"
#include "core/os/os.h" #include "core/os/os.h"
#include "core/templates/local_vector.h" #include "core/templates/local_vector.h"
#include "drivers/egl/egl_manager.h" #include "drivers/egl/egl_manager.h"

View File

@ -32,7 +32,6 @@
#if defined(MACOS_ENABLED) && defined(GLES3_ENABLED) #if defined(MACOS_ENABLED) && defined(GLES3_ENABLED)
#include "core/error/error_list.h"
#include "core/os/os.h" #include "core/os/os.h"
#include "core/templates/local_vector.h" #include "core/templates/local_vector.h"
#include "servers/display_server.h" #include "servers/display_server.h"

View File

@ -32,7 +32,6 @@
#if defined(WINDOWS_ENABLED) && defined(GLES3_ENABLED) #if defined(WINDOWS_ENABLED) && defined(GLES3_ENABLED)
#include "core/error/error_list.h"
#include "core/os/os.h" #include "core/os/os.h"
#include "core/templates/local_vector.h" #include "core/templates/local_vector.h"
#include "drivers/egl/egl_manager.h" #include "drivers/egl/egl_manager.h"

View File

@ -32,7 +32,6 @@
#if defined(WINDOWS_ENABLED) && defined(GLES3_ENABLED) #if defined(WINDOWS_ENABLED) && defined(GLES3_ENABLED)
#include "core/error/error_list.h"
#include "core/os/os.h" #include "core/os/os.h"
#include "core/templates/local_vector.h" #include "core/templates/local_vector.h"
#include "servers/display_server.h" #include "servers/display_server.h"

View File

@ -34,16 +34,6 @@
class Image; class Image;
#if !defined(__aligned)
#if defined(_WIN32) && defined(_MSC_VER)
#define __aligned(...) __declspec(align(__VA_ARGS__))
#else
#define __aligned(...) __attribute__((aligned(__VA_ARGS__)))
#endif
#endif
class LightmapDenoiser : public RefCounted { class LightmapDenoiser : public RefCounted {
GDCLASS(LightmapDenoiser, RefCounted) GDCLASS(LightmapDenoiser, RefCounted)
protected: protected:
@ -61,7 +51,7 @@ protected:
public: public:
// Compatible with embree4 rays. // Compatible with embree4 rays.
struct __aligned(16) Ray { struct alignas(16) Ray {
const static unsigned int INVALID_GEOMETRY_ID = ((unsigned int)-1); // from rtcore_common.h const static unsigned int INVALID_GEOMETRY_ID = ((unsigned int)-1); // from rtcore_common.h
/*! Default construction does nothing. */ /*! Default construction does nothing. */

View File

@ -43,8 +43,6 @@
#include "scene/resources/packed_scene.h" #include "scene/resources/packed_scene.h"
#include "viewport.h" #include "viewport.h"
#include <stdint.h>
int Node::orphan_node_count = 0; int Node::orphan_node_count = 0;
thread_local Node *Node::current_process_thread_group = nullptr; thread_local Node *Node::current_process_thread_group = nullptr;

View File

@ -35,8 +35,6 @@
#include "core/math/random_pcg.h" #include "core/math/random_pcg.h"
#include "scene/resources/surface_tool.h" #include "scene/resources/surface_tool.h"
#include <cstdint>
String ImporterMesh::validate_blend_shape_name(const String &p_name) { String ImporterMesh::validate_blend_shape_name(const String &p_name) {
String name = p_name; String name = p_name;
const char *characters = ":"; const char *characters = ":";

View File

@ -36,8 +36,6 @@
#include "scene/resources/mesh.h" #include "scene/resources/mesh.h"
#include "scene/resources/navigation_mesh.h" #include "scene/resources/navigation_mesh.h"
#include <cstdint>
// The following classes are used by importers instead of ArrayMesh and MeshInstance3D // The following classes are used by importers instead of ArrayMesh and MeshInstance3D
// so the data is not registered (hence, quality loss), importing happens faster and // so the data is not registered (hence, quality loss), importing happens faster and
// its easier to modify before saving // its easier to modify before saving