aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-11-26 15:34:29 +0100
committerGitHub <noreply@github.com>2023-11-26 22:34:29 +0800
commit34509bbea3e8c6a8033911aea645b1b5579f7d1a (patch)
treea7a12ee95e71dfc73e1b06fa40469b030323ad1b /Makefile
parentce6075f82a2a8ff9c3e2d0074e1cd56457e5507f (diff)
downloadrneovim-34509bbea3e8c6a8033911aea645b1b5579f7d1a.tar.gz
rneovim-34509bbea3e8c6a8033911aea645b1b5579f7d1a.tar.bz2
rneovim-34509bbea3e8c6a8033911aea645b1b5579f7d1a.zip
build: sync IWYU and clint to ignore the same headers (#26228)
Also fix headers for autocmd.c.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cfbf4e79fd..6d9fb820ce 100644
--- a/Makefile
+++ b/Makefile
@@ -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