build: sync IWYU and clint to ignore the same headers (#26228)

Also fix headers for autocmd.c.
This commit is contained in:
dundargoc
2023-11-26 15:34:29 +01:00
committed by GitHub
parent ce6075f82a
commit 34509bbea3
3 changed files with 209 additions and 167 deletions

View File

@ -136,6 +136,8 @@ generated-sources benchmark $(FORMAT) $(LINT) $(TEST) doc: | build/.ran-cmake
test: $(TEST)
# The ignored header files should be synced with the `check_includes_ignore`
# array in src/clint.py
iwyu: build/.ran-cmake
cmake --preset iwyu
cmake --build build > build/iwyu.log
@ -163,7 +165,6 @@ iwyu: build/.ran-cmake
|src/nvim/arglist_defs.h\
|src/nvim/ascii.h\
|src/nvim/assert.h\
|src/nvim/autocmd.c\
|src/nvim/autocmd.h\
|src/nvim/base64.h\
|src/nvim/buffer.h\
@ -338,7 +339,8 @@ iwyu: build/.ran-cmake
|src/nvim/viml/parser/expressions.h\
|src/nvim/viml/parser/parser.h\
|src/nvim/window.h\
|src/nvim/winfloat.h)" --nosafe_headers < build/iwyu.log
|src/nvim/winfloat.h\
)" --nosafe_headers < build/iwyu.log
cmake -B build -U ENABLE_IWYU
cmake --build build