aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-10-06 17:43:23 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-10-09 16:52:28 +0200
commit6c0f900699293937435591412e4285e313703bc7 (patch)
tree8de906c4a1ecd298587144c0f01e812d3720dd13 /Makefile
parent55be4a4e26eafd06704a465ce85cf9526115e0f1 (diff)
downloadrneovim-6c0f900699293937435591412e4285e313703bc7.tar.gz
rneovim-6c0f900699293937435591412e4285e313703bc7.tar.bz2
rneovim-6c0f900699293937435591412e4285e313703bc7.zip
ci: enable clang-analyzer warnings
This adds the checks in https://neovim.io/doc/reports/clang/ when using clang-tidy. The strategy is to enable all clang-analyzer checks, and disable only the checks for the warnings that exist currently. This allows us to eliminate each warning type without blocking ongoing work, but also without adding bugs for already eliminated warnings. The plan is to eventually eliminate https://neovim.io/doc/reports/clang/ by completely integrating it into the clang-tidy check. Also add make and cmake targets `clang-analyzer` to run this check.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8294d48eb9..3193b26b96 100644
--- a/Makefile
+++ b/Makefile
@@ -129,7 +129,7 @@ functionaltest-lua: | nvim
$(BUILD_TOOL) -C build functionaltest
FORMAT=formatc formatlua format
-LINT=lintlua lintsh lintc clang-tidy lintcommit lint
+LINT=lintlua lintsh lintc clang-tidy clang-analyzer lintcommit lint
TEST=functionaltest unittest
generated-sources benchmark $(FORMAT) $(LINT) $(TEST) doc: | build/.ran-cmake
$(CMAKE_PRG) --build build --target $@