clean up includes (color) (#939)

* clean up includes (color)

* tidy
This commit is contained in:
briaguya
2025-10-13 19:30:28 -04:00
committed by GitHub
parent a64f9f9d98
commit de251e2dc2
6 changed files with 25 additions and 12 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ jobs:
mkdir clang-tidy-result
- name: Analyze
run: |
git diff -U0 HEAD^ -- 'src' 'include' ':!include/libultraship/color.h' ':!include/libultraship/libultra/*' ':!src/libultraship/libultra/*' ':!src/fast/*' ':!include/fast/*' ':!src/ship/utils/AppleFolderManager.mm' | clang-tidy-diff -p1 -path build -export-fixes clang-tidy-result/fixes.yml
git diff -U0 HEAD^ -- 'src' 'include' ':!include/libultraship/color.h' ':!include/ship/utils/color.h' ':!include/libultraship/libultra/*' ':!src/libultraship/libultra/*' ':!src/fast/*' ':!include/fast/*' ':!src/ship/utils/AppleFolderManager.mm' | clang-tidy-diff -p1 -path build -export-fixes clang-tidy-result/fixes.yml
- name: Save PR metadata
run: |
echo ${{ github.event.number }} > clang-tidy-result/pr-id.txt
+2 -8
View File
@@ -2,18 +2,12 @@
#include <stdint.h>
#include <ship/utils/color.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
uint8_t r, g, b;
} Color_RGB8;
typedef struct {
uint8_t r, g, b, a;
} Color_RGBA8;
// only use when necessary for alignment purposes
typedef union {
struct {
@@ -8,7 +8,7 @@
#include <vector>
#include <map>
#include "libultraship/libultra/controller.h"
#include "libultraship/color.h"
#include "ship/utils/color.h"
#include <unordered_map>
#include "ship/controller/controldevice/controller/Controller.h"
+1 -1
View File
@@ -1,6 +1,6 @@
#pragma once
#include "libultraship/color.h"
#include "ship/utils/color.h"
#include <nlohmann/json.hpp>
#include <stdint.h>
#include <memory>
@@ -3,7 +3,7 @@
#include <cstdint>
#include <string>
#include "ControllerMapping.h"
#include "libultraship/color.h"
#include "ship/utils/color.h"
namespace Ship {
+19
View File
@@ -0,0 +1,19 @@
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
uint8_t r, g, b;
} Color_RGB8;
typedef struct {
uint8_t r, g, b, a;
} Color_RGBA8;
#ifdef __cplusplus
};
#endif