style: aplicar fixes de clang-tidy (todo excepto uppercase-literal-suffix)
Corregidos ~2570 issues automáticamente con clang-tidy --fix-errors más ajustes manuales posteriores: - modernize: designated-initializers, trailing-return-type, use-auto, avoid-c-arrays (→ std::array<>), use-ranges, use-emplace, deprecated-headers, use-equals-default, pass-by-value, return-braced-init-list, use-default-member-init - readability: math-missing-parentheses, implicit-bool-conversion, braces-around-statements, isolate-declaration, use-std-min-max, identifier-naming, else-after-return, redundant-casting, convert-member-functions-to-static, make-member-function-const, static-accessed-through-instance - performance: avoid-endl, unnecessary-value-param, type-promotion, inefficient-vector-operation - dead code: XOR_KEY (orphan tras eliminar encryptData/decryptData), dead stores en engine.cpp y png_shape.cpp - NOLINT justificado en 10 funciones con alta complejidad cognitiva (initialize, render, main, processEvents, update×3, performDemoAction, randomizeOnDemoStart, renderDebugHUD, AppLogo::update) Compilación: gcc -Wall sin warnings. clang-tidy: 0 issues. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "defines.hpp" // for Color, ThemeKeyframe
|
||||
|
||||
/**
|
||||
@@ -47,8 +48,12 @@ class Theme {
|
||||
* @param br, bg, bb: Color inferior (out)
|
||||
*/
|
||||
virtual void getBackgroundColors(float progress,
|
||||
float& tr, float& tg, float& tb,
|
||||
float& br, float& bg, float& bb) const = 0;
|
||||
float& tr,
|
||||
float& tg,
|
||||
float& tb,
|
||||
float& br,
|
||||
float& bg,
|
||||
float& bb) const = 0;
|
||||
|
||||
// ========================================
|
||||
// ANIMACIÓN (solo temas dinámicos)
|
||||
@@ -58,7 +63,7 @@ class Theme {
|
||||
* Actualiza progreso de animación interna (solo dinámicos)
|
||||
* @param delta_time: Tiempo transcurrido desde último frame
|
||||
*/
|
||||
virtual void update(float delta_time) { }
|
||||
virtual void update(float delta_time) {}
|
||||
|
||||
/**
|
||||
* ¿Este tema necesita update() cada frame?
|
||||
@@ -75,7 +80,7 @@ class Theme {
|
||||
/**
|
||||
* Reinicia progreso de animación a 0.0 (usado al activar tema)
|
||||
*/
|
||||
virtual void resetProgress() { }
|
||||
virtual void resetProgress() {}
|
||||
|
||||
// ========================================
|
||||
// PAUSA (solo temas dinámicos)
|
||||
@@ -90,5 +95,5 @@ class Theme {
|
||||
/**
|
||||
* Toggle pausa de animación (solo dinámicos, tecla Shift+D)
|
||||
*/
|
||||
virtual void togglePause() { }
|
||||
virtual void togglePause() {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user