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

@ -51,6 +51,8 @@
// and pairable_mask is either 0 if static, or set to all if non static
#include "bvh_tree.h"
#include "core/math/geometry_3d.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>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -30,6 +30,8 @@
#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) {
// 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/face3.h"
#include "core/object/object.h"
#include "core/templates/local_vector.h"
#include "core/templates/vector.h"

View file

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

View file

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

View file

@ -32,16 +32,6 @@
#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 {
GDCLASS(StaticRaycaster, RefCounted)
protected:
@ -49,7 +39,7 @@ protected:
public:
// 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
/*! Default construction does nothing. */