mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Code quality: Fix header guards consistency
Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
This commit is contained in:
@@ -67,4 +67,4 @@ public:
|
||||
~Area2PairSW();
|
||||
};
|
||||
|
||||
#endif // AREA_PAIR__SW_H
|
||||
#endif // AREA_PAIR_SW_H
|
||||
|
||||
@@ -196,4 +196,4 @@ void AreaSW::remove_area_from_query(AreaSW *p_area, uint32_t p_area_shape, uint3
|
||||
}
|
||||
}
|
||||
|
||||
#endif // AREA__SW_H
|
||||
#endif // AREA_SW_H
|
||||
|
||||
@@ -93,4 +93,4 @@ public:
|
||||
~BodyPairSW();
|
||||
};
|
||||
|
||||
#endif // BODY_PAIR__SW_H
|
||||
#endif // BODY_PAIR_SW_H
|
||||
|
||||
@@ -486,4 +486,4 @@ public:
|
||||
PhysicsDirectBodyStateSW() {}
|
||||
};
|
||||
|
||||
#endif // BODY__SW_H
|
||||
#endif // BODY_SW_H
|
||||
|
||||
@@ -70,4 +70,4 @@ public:
|
||||
virtual ~BroadPhaseSW();
|
||||
};
|
||||
|
||||
#endif // BROAD_PHASE__SW_H
|
||||
#endif // BROAD_PHASE_SW_H
|
||||
|
||||
@@ -50,4 +50,4 @@ public:
|
||||
static bool solve_distance(const ShapeSW *p_shape_A, const Transform &p_transform_A, const ShapeSW *p_shape_B, const Transform &p_transform_B, Vector3 &r_point_A, Vector3 &r_point_B, const AABB &p_concave_hint, Vector3 *r_sep_axis = nullptr);
|
||||
};
|
||||
|
||||
#endif // COLLISION_SOLVER__SW_H
|
||||
#endif // COLLISION_SOLVER_SW_H
|
||||
|
||||
@@ -81,4 +81,4 @@ public:
|
||||
virtual ~ConstraintSW() {}
|
||||
};
|
||||
|
||||
#endif // CONSTRAINT__SW_H
|
||||
#endif // CONSTRAINT_SW_H
|
||||
|
||||
@@ -37,4 +37,4 @@
|
||||
bool gjk_epa_calculate_penetration(const ShapeSW *p_shape_A, const Transform &p_transform_A, const ShapeSW *p_shape_B, const Transform &p_transform_B, CollisionSolverSW::CallbackResult p_result_callback, void *p_userdata, bool p_swap = false, real_t p_margin_A = 0.0, real_t p_margin_B = 0.0);
|
||||
bool gjk_epa_calculate_distance(const ShapeSW *p_shape_A, const Transform &p_transform_A, const ShapeSW *p_shape_B, const Transform &p_transform_B, Vector3 &r_result_A, Vector3 &r_result_B);
|
||||
|
||||
#endif
|
||||
#endif // GJK_EPA_H
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef PHYSICS_SERVER_SW
|
||||
#define PHYSICS_SERVER_SW
|
||||
#ifndef PHYSICS_SERVER_SW_H
|
||||
#define PHYSICS_SERVER_SW_H
|
||||
|
||||
#include "joints_sw.h"
|
||||
#include "servers/physics_server.h"
|
||||
@@ -370,4 +370,4 @@ public:
|
||||
~PhysicsServerSW();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif // PHYSICS_SERVER_SW_H
|
||||
|
||||
@@ -526,4 +526,4 @@ struct _ShapeTestConvexBSPSW {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // SHAPESW_H
|
||||
#endif // SHAPE_SW_H
|
||||
|
||||
@@ -208,4 +208,4 @@ public:
|
||||
~SpaceSW();
|
||||
};
|
||||
|
||||
#endif // SPACE__SW_H
|
||||
#endif // SPACE_SW_H
|
||||
|
||||
@@ -46,4 +46,4 @@ public:
|
||||
StepSW();
|
||||
};
|
||||
|
||||
#endif // STEP__SW_H
|
||||
#endif // STEP_SW_H
|
||||
|
||||
Reference in New Issue
Block a user