From 6f4eb9c1fcf2a087b95d6eab658ab987baef9b05 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Fri, 19 Dec 2025 13:03:52 +0100 Subject: [PATCH] tidy: includes --- .clang-tidy | 4 ++-- source/game/stage_system/spawn_controller.cpp | 6 ++++++ source/game/stage_system/stage_loader.cpp | 9 ++++++++- source/game/stage_system/stage_manager.cpp | 4 ++++ source/game/stage_system/stage_manager.hpp | 4 ++-- source/game/title/ship_animator.cpp | 2 ++ source/game/title/ship_animator.hpp | 1 - 7 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 29a2e09..ff3dedf 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -33,8 +33,8 @@ Checks: - -bugprone-exception-escape # Excluido (excepciones en main terminan el programa - OK) # ✅ Check 11: llvm-include-order (validar orden de includes - 0 errores) - llvm-include-order - # ⏳ Check 12: misc-include-cleaner (detectar includes no usados y faltantes) - - misc-include-cleaner + # ⏸️ Check 12: misc-include-cleaner (DESHABILITADO temporalmente - requiere refactorización masiva de includes) + - -misc-include-cleaner WarningsAsErrors: '*' # No usar HeaderFilterRegex - usamos .clang-tidy local en source/core/audio/ para excluir diff --git a/source/game/stage_system/spawn_controller.cpp b/source/game/stage_system/spawn_controller.cpp index 36dd745..ddf93b6 100644 --- a/source/game/stage_system/spawn_controller.cpp +++ b/source/game/stage_system/spawn_controller.cpp @@ -3,10 +3,16 @@ #include "spawn_controller.hpp" +#include +#include #include #include #include +#include "core/types.hpp" +#include "game/entities/enemic.hpp" +#include "stage_config.hpp" + namespace StageSystem { SpawnController::SpawnController() diff --git a/source/game/stage_system/stage_loader.cpp b/source/game/stage_system/stage_loader.cpp index 19a25a0..d1046f3 100644 --- a/source/game/stage_system/stage_loader.cpp +++ b/source/game/stage_system/stage_loader.cpp @@ -3,12 +3,19 @@ #include "stage_loader.hpp" -#include +#include +#include +#include +#include #include +#include #include +#include +#include #include "core/resources/resource_helper.hpp" #include "external/fkyaml_node.hpp" +#include "stage_config.hpp" namespace StageSystem { diff --git a/source/game/stage_system/stage_manager.cpp b/source/game/stage_system/stage_manager.cpp index 6bec169..6fb3d2f 100644 --- a/source/game/stage_system/stage_manager.cpp +++ b/source/game/stage_system/stage_manager.cpp @@ -3,10 +3,14 @@ #include "stage_manager.hpp" +#include +#include +#include #include #include "core/audio/audio.hpp" #include "core/defaults.hpp" +#include "stage_config.hpp" namespace StageSystem { diff --git a/source/game/stage_system/stage_manager.hpp b/source/game/stage_system/stage_manager.hpp index 2539073..96371de 100644 --- a/source/game/stage_system/stage_manager.hpp +++ b/source/game/stage_system/stage_manager.hpp @@ -4,7 +4,7 @@ #pragma once #include -#include +#include #include "spawn_controller.hpp" #include "stage_config.hpp" @@ -28,7 +28,7 @@ class StageManager { void actualitzar(float delta_time, bool pausar_spawn = false); // Stage progression - void stage_completat(); // Call when all enemies destroyed + void stage_completat(); // Call when all enemies destroyed [[nodiscard]] bool tot_completat() const; // All 10 stages done? // Current state queries diff --git a/source/game/title/ship_animator.cpp b/source/game/title/ship_animator.cpp index 3d9b0cc..4cdc770 100644 --- a/source/game/title/ship_animator.cpp +++ b/source/game/title/ship_animator.cpp @@ -3,11 +3,13 @@ #include "ship_animator.hpp" +#include #include #include "core/defaults.hpp" #include "core/graphics/shape_loader.hpp" #include "core/math/easing.hpp" +#include "core/rendering/shape_renderer.hpp" namespace Title { diff --git a/source/game/title/ship_animator.hpp b/source/game/title/ship_animator.hpp index 1aa3cd9..281496a 100644 --- a/source/game/title/ship_animator.hpp +++ b/source/game/title/ship_animator.hpp @@ -9,7 +9,6 @@ #include #include "core/graphics/shape.hpp" -#include "core/rendering/shape_renderer.hpp" #include "core/types.hpp" namespace Title {