aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/macros.h
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-11-12 13:13:58 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-11-12 21:26:39 +0100
commit353a4be7e84fdc101318215bdcc8a7e780d737fe (patch)
treead75dc836a028d1e3596e9b09ad5d1bc118d0c01 /src/nvim/macros.h
parent2a57613b9b4206cc627efa63012aac791b8f89e0 (diff)
downloadrneovim-353a4be7e84fdc101318215bdcc8a7e780d737fe.tar.gz
rneovim-353a4be7e84fdc101318215bdcc8a7e780d737fe.tar.bz2
rneovim-353a4be7e84fdc101318215bdcc8a7e780d737fe.zip
build: remove PVS
We already have an extensive suite of static analysis tools we use, which causes a fair bit of redundancy as we get duplicate warnings. PVS is also prone to give false warnings which creates a lot of work to identify and disable.
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r--src/nvim/macros.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h
index b4034fe4f7..6a999489e2 100644
--- a/src/nvim/macros.h
+++ b/src/nvim/macros.h
@@ -61,8 +61,6 @@
/// Don't apply 'langmap' if the character comes from the Stuff buffer or from a
/// mapping and the langnoremap option was set.
/// The do-while is just to ignore a ';' after the macro.
-///
-/// -V:LANGMAP_ADJUST:560
#define LANGMAP_ADJUST(c, condition) \
do { \
if (*p_langmap \
@@ -111,8 +109,6 @@
/// error. A mechanism to detect many (though not all) of those errors at
/// compile time is implemented. It works by the second division producing
/// a division by zero in those cases (-Wdiv-by-zero in GCC).
-///
-/// -V:ARRAY_SIZE:1063
#define ARRAY_SIZE(arr) \
((sizeof(arr)/sizeof((arr)[0])) \
/ ((size_t)(!(sizeof(arr) % sizeof((arr)[0])))))
@@ -162,18 +158,6 @@
# define UNREACHABLE
#endif
-// -V:STRUCT_CAST:641
-
-/// Change type of structure pointers: cast `struct a *` to `struct b *`
-///
-/// Used to silence PVS errors.
-///
-/// @param Type Structure to cast to.
-/// @param obj Object to cast.
-///
-/// @return ((Type *)obj).
-#define STRUCT_CAST(Type, obj) ((Type *)(obj))
-
// Type of uv_buf_t.len is platform-dependent.
// Related: https://github.com/libuv/libuv/pull/1236
#if defined(MSWIN)