From 5a5a3a3c13051ba203c5ccf8db8d135cf5ba9626 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 17 Sep 2024 23:27:23 +0200 Subject: [PATCH] tools: ditch iwyu --- CONTRIBUTING.md | 6 ++---- src/game/game_string.c | 2 -- subprojects/libtrx | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f28af5d6..905705e0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -62,9 +62,7 @@ even refuse to compile. This project uses [pre-commit](https://pre-commit.com/) to make sure the code is formatted the right way. This tool has additional external dependencies: -`clang-format` for automatic code formatting and `include-what-you-use` to -remove unused `#include`s. -To install pre-commit: +`clang-format` for automatic code formatting. To install pre-commit: ``` python3 -m pip install --user pre-commit @@ -74,7 +72,7 @@ pre-commit install To install required external dependencies on Ubuntu: ``` -apt-get install -y iwyu clang-format-18 +apt-get install -y clang-format-18 ``` After this, each time you make a commit a hook should trigger to automatically diff --git a/src/game/game_string.c b/src/game/game_string.c index 264a97ff..aff8bd57 100644 --- a/src/game/game_string.c +++ b/src/game/game_string.c @@ -4,9 +4,7 @@ void GameString_Init(void) { - // IWYU pragma: begin_keep #include "game_string.def" - // IWYU pragma: end_keep } void GameString_Shutdown(void) diff --git a/subprojects/libtrx b/subprojects/libtrx index 0d395b79..c1f3ab51 160000 --- a/subprojects/libtrx +++ b/subprojects/libtrx @@ -1 +1 @@ -Subproject commit 0d395b79ec7cea7afd40fe241a535b3bb48602a6 +Subproject commit c1f3ab51a07bd8ff93f975b3112830f838147a21