mirror of
https://github.com/LostArtefacts/TR2X.git
synced 2024-11-23 05:50:01 +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
|
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:
|
is formatted the right way. This tool has additional external dependencies:
|
||||||
`clang-format` for automatic code formatting and `include-what-you-use` to
|
`clang-format` for automatic code formatting. To install pre-commit:
|
||||||
remove unused `#include`s.
|
|
||||||
To install pre-commit:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
python3 -m pip install --user pre-commit
|
python3 -m pip install --user pre-commit
|
||||||
@ -74,7 +72,7 @@ pre-commit install
|
|||||||
To install required external dependencies on Ubuntu:
|
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
|
After this, each time you make a commit a hook should trigger to automatically
|
||||||
|
@ -4,9 +4,7 @@
|
|||||||
|
|
||||||
void GameString_Init(void)
|
void GameString_Init(void)
|
||||||
{
|
{
|
||||||
// IWYU pragma: begin_keep
|
|
||||||
#include "game_string.def"
|
#include "game_string.def"
|
||||||
// IWYU pragma: end_keep
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameString_Shutdown(void)
|
void GameString_Shutdown(void)
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 0d395b79ec7cea7afd40fe241a535b3bb48602a6
|
Subproject commit c1f3ab51a07bd8ff93f975b3112830f838147a21
|
Loading…
Reference in New Issue
Block a user