aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-10-24 17:44:02 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-04-17 13:12:37 +0200
commitb0f9228179bf781eec76d1aaf346b56a7e64cd5d (patch)
treedf694fa87bd62a0dfd5d594a145b20677330007a /src
parent96d0c709b66e5c690800dc2d88c723b01f5f0561 (diff)
downloadrneovim-b0f9228179bf781eec76d1aaf346b56a7e64cd5d.tar.gz
rneovim-b0f9228179bf781eec76d1aaf346b56a7e64cd5d.tar.bz2
rneovim-b0f9228179bf781eec76d1aaf346b56a7e64cd5d.zip
docs: remove mentions of scan-build
These same checks are already checked by the clang-analyzer job, so this duplication is not necessary.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/CMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 45ad738255..64bd40f5f0 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -833,9 +833,12 @@ add_glob_target(
FLAGS --quiet
EXCLUDE ${EXCLUDE_CLANG_TIDY})
-# These are the same warnings as https://neovim.io/doc/reports/clang/. The
-# checks we ignore are meant to be removed eventually, but we can only do so
-# after we properly fix the problems without breaking CI.
+# The checks we ignore are meant to be removed eventually, but we can only
+# enable each warning after we fix all instances of that specific warning as to
+# not break CI.
+if(APPLE)
+ string(APPEND CLANG_ANALYZER_IGNORE "-clang-analyzer-core.NonNullParamChecker,")
+endif()
add_glob_target(
TARGET clang-analyzer
COMMAND ${CLANG_TIDY_PRG}
@@ -849,6 +852,7 @@ add_glob_target(
-clang-analyzer-core.uninitialized.Assign,
-clang-analyzer-optin.performance.Padding,
-clang-analyzer-security.insecureAPI.strcpy,
+ ${CLANG_ANALYZER_IGNORE}
'
EXCLUDE ${EXCLUDE_CLANG_TIDY})