Skip to content

Commit

Permalink
tools: ditch iwyu
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Sep 17, 2024
1 parent 75a432c commit 682ba6c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ repos:
entry: tools/additional_lint
language: python
stages: [commit]

- id: imports
name: imports
entry: tools/sort_imports
language: system
files: \.[ch](pp)?$
1 change: 0 additions & 1 deletion src/game/clock.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// IWYU pragma: no_include <bits/types/struct_tm.h>
#include "game/clock.h"

#include "config.h"
Expand Down
2 changes: 0 additions & 2 deletions src/game/game_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

void GameString_Init(void)
{
// IWYU pragma: begin_keep
#include "game_string.def"
// IWYU pragma: end_keep
}

void GameString_Shutdown(void)
Expand Down
2 changes: 0 additions & 2 deletions src/specific/s_fmv.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

// IWYU pragma: no_include <libavcodec/defs.h>

#include "specific/s_fmv.h"

#include "config.h"
Expand Down
2 changes: 1 addition & 1 deletion subprojects/libtrx

0 comments on commit 682ba6c

Please sign in to comment.