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:
Rémi Verschelde
2022-07-25 12:33:41 +02:00
parent d3e9ed10e0
commit 818f1eed31
479 changed files with 986 additions and 842 deletions

View File

@@ -67,4 +67,4 @@ public:
~Area2PairSW();
};
#endif // AREA_PAIR__SW_H
#endif // AREA_PAIR_SW_H

View File

@@ -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

View File

@@ -93,4 +93,4 @@ public:
~BodyPairSW();
};
#endif // BODY_PAIR__SW_H
#endif // BODY_PAIR_SW_H

View File

@@ -486,4 +486,4 @@ public:
PhysicsDirectBodyStateSW() {}
};
#endif // BODY__SW_H
#endif // BODY_SW_H

View File

@@ -70,4 +70,4 @@ public:
virtual ~BroadPhaseSW();
};
#endif // BROAD_PHASE__SW_H
#endif // BROAD_PHASE_SW_H

View File

@@ -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

View File

@@ -81,4 +81,4 @@ public:
virtual ~ConstraintSW() {}
};
#endif // CONSTRAINT__SW_H
#endif // CONSTRAINT_SW_H

View File

@@ -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

View File

@@ -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

View File

@@ -526,4 +526,4 @@ struct _ShapeTestConvexBSPSW {
}
};
#endif // SHAPESW_H
#endif // SHAPE_SW_H

View File

@@ -208,4 +208,4 @@ public:
~SpaceSW();
};
#endif // SPACE__SW_H
#endif // SPACE_SW_H

View File

@@ -46,4 +46,4 @@ public:
StepSW();
};
#endif // STEP__SW_H
#endif // STEP_SW_H