Re-added clang-format checks to the CI

This commit is contained in:
Marc Gilleron
2021-02-01 00:15:22 +00:00
parent 9598fd5c8e
commit 1f7f66d09e
5 changed files with 60 additions and 53 deletions

View File

@@ -2,10 +2,10 @@
#define CAMERA_MATRIX_H
#include "Defs.hpp"
#include "Math.hpp"
#include "Plane.hpp"
#include "Rect2.hpp"
#include "Transform.hpp"
#include "Math.hpp"
#include <vector>
@@ -39,12 +39,10 @@ struct CameraMatrix {
void set_frustum(real_t p_size, real_t p_aspect, Vector2 p_offset, real_t p_near, real_t p_far, bool p_flip_fov = false);
static real_t get_fovy(real_t p_fovx, real_t p_aspect) {
return Math::rad2deg(atan(p_aspect * tan(Math::deg2rad(p_fovx) * 0.5)) * 2.0);
}
static inline double absd(double g) {
union {
double d;
uint64_t i;

View File

@@ -3,7 +3,6 @@
#include "OS.hpp"
namespace godot {
class FunctionProfiling {
@@ -23,7 +22,7 @@ public:
}
};
}
} // namespace godot
#ifdef DEBUG_ENABLED
#define GODOT_PROFILING_FUNCTION FunctionProfiling __function_profiling(__FUNCTION__, __LINE__);