mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
build: fix "make iwyu" not working (#24873)
This commit is contained in:
parent
1635c9e75e
commit
5bb17958c5
@ -246,7 +246,7 @@ For managing includes in C files, use [include-what-you-use].
|
|||||||
- To see which includes needs fixing use the cmake preset `iwyu`:
|
- To see which includes needs fixing use the cmake preset `iwyu`:
|
||||||
```bash
|
```bash
|
||||||
cmake --preset iwyu
|
cmake --preset iwyu
|
||||||
cmake --build build iwyu
|
cmake --build build
|
||||||
```
|
```
|
||||||
- There's also a make target that automatically fixes the suggestions from
|
- There's also a make target that automatically fixes the suggestions from
|
||||||
IWYU:
|
IWYU:
|
||||||
|
2
Makefile
2
Makefile
@ -138,7 +138,7 @@ test: $(TEST)
|
|||||||
|
|
||||||
iwyu: build/.ran-cmake
|
iwyu: build/.ran-cmake
|
||||||
cmake --preset iwyu
|
cmake --preset iwyu
|
||||||
cmake --build --preset iwyu > build/iwyu.log
|
cmake --build build > build/iwyu.log
|
||||||
iwyu-fix-includes --only_re="src/nvim" --ignore_re="src/nvim/(auto|map.h|eval/encode.c)" --safe_headers < build/iwyu.log
|
iwyu-fix-includes --only_re="src/nvim" --ignore_re="src/nvim/(auto|map.h|eval/encode.c)" --safe_headers < build/iwyu.log
|
||||||
cmake -B build -U ENABLE_IWYU
|
cmake -B build -U ENABLE_IWYU
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user