mirror of
https://github.com/LostArtefacts/TR2X.git
synced 2024-11-26 23:50:33 +00:00
tools: ditch iwyu
This commit is contained in:
parent
ca58dd4eaf
commit
5a5a3a3c13
@ -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
|
||||
|
@ -4,9 +4,7 @@
|
||||
|
||||
void GameString_Init(void)
|
||||
{
|
||||
// IWYU pragma: begin_keep
|
||||
#include "game_string.def"
|
||||
// IWYU pragma: end_keep
|
||||
}
|
||||
|
||||
void GameString_Shutdown(void)
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 0d395b79ec7cea7afd40fe241a535b3bb48602a6
|
||||
Subproject commit c1f3ab51a07bd8ff93f975b3112830f838147a21
|
Loading…
Reference in New Issue
Block a user