diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-01-14 00:48:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 15:48:10 -0800 |
commit | 9220755302317e8030c5bbf334357c0d64df9fa4 (patch) | |
tree | 3ee671d186e47fab2c7e808f9236fe65005b890f /src/nvim/lib | |
parent | b884d0b37031ec3d5a521925ea66621b572adfda (diff) | |
download | rneovim-9220755302317e8030c5bbf334357c0d64df9fa4.tar.gz rneovim-9220755302317e8030c5bbf334357c0d64df9fa4.tar.bz2 rneovim-9220755302317e8030c5bbf334357c0d64df9fa4.zip |
build: remove clint error suppression #21782
Fix remaining clint errors and remove error suppression completely.
Rename the lint targets to align with the established naming convention:
- lintc-clint lints with clint.py.
- lintc-uncrustify lints with uncrustify.
- lintc runs both targets.
lintc is also provided as a make target for convenience.
After this change we can remove these files:
https://github.com/neovim/doc/tree/gh-pages/reports/clint
https://github.com/neovim/doc/blob/main/ci/clint-errors.sh
Diffstat (limited to 'src/nvim/lib')
-rw-r--r-- | src/nvim/lib/ringbuf.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/nvim/lib/ringbuf.h b/src/nvim/lib/ringbuf.h index 4fd110a531..907018a06e 100644 --- a/src/nvim/lib/ringbuf.h +++ b/src/nvim/lib/ringbuf.h @@ -25,14 +25,9 @@ #define _RINGBUF_LENGTH(rb) \ ((rb)->first == NULL ? 0 \ - : ((rb)->next == (rb)->first) ? (size_t)((rb)->buf_end - (rb)->buf) + 1 \ - : ((rb)->next > \ - (rb)->first) ? (size_t)((rb)->next - \ - (rb)->first) \ - : (size_t)((rb)-> \ - next - (rb)->buf + \ - (rb)->buf_end - \ - (rb)->first + 1)) + : ((rb)->next == (rb)->first) ? (size_t)((rb)->buf_end - (rb)->buf) + 1 \ + : ((rb)->next > (rb)->first) ? (size_t)((rb)->next - (rb)->first) \ + : (size_t)((rb)->next - (rb)->buf + (rb)->buf_end - (rb)->first + 1)) #define _RINGBUF_NEXT(rb, var) \ ((var) == (rb)->buf_end ? (rb)->buf : (var) + 1) |