diff options
author | dundargoc <gocdundar@gmail.com> | 2023-11-10 14:06:04 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-11-20 20:05:43 +0100 |
commit | 488038580934f301c1528a14548ec0cabd16c2cd (patch) | |
tree | ef0d5c2e3de1cd4dce86e319c68b90c2096d2408 /src/nvim/regexp.c | |
parent | a6e3d93421ba13c407a96fac9cc01fa41ec7ad98 (diff) | |
download | rneovim-488038580934f301c1528a14548ec0cabd16c2cd.tar.gz rneovim-488038580934f301c1528a14548ec0cabd16c2cd.tar.bz2 rneovim-488038580934f301c1528a14548ec0cabd16c2cd.zip |
build: adjust clang-tidy warning exclusion logic
Enable all clang-tidy warnings by default instead of disabling them.
This ensures that we don't miss useful warnings on each clang-tidy
version upgrade. A drawback of this is that it will force us to either
fix or adjust the warnings as soon as possible.
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r-- | src/nvim/regexp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index 433a008014..f91d0cabdb 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -3826,7 +3826,7 @@ static uint8_t *regnext(uint8_t *p) } // Set the next-pointer at the end of a node chain. -static void regtail(uint8_t *p, uint8_t *val) +static void regtail(uint8_t *p, const uint8_t *val) { int offset; @@ -5843,7 +5843,7 @@ static void restore_subexpr(regbehind_T *bp) /// just after the last matched character. /// - false when there is no match. Leaves rex.input and rex.lnum in an /// undefined state! -static bool regmatch(uint8_t *scan, proftime_T *tm, int *timed_out) +static bool regmatch(uint8_t *scan, const proftime_T *tm, int *timed_out) { uint8_t *next; // Next node. int op; @@ -7505,7 +7505,7 @@ static int bt_regexec_multi(regmmatch_T *rmp, win_T *win, buf_T *buf, linenr_T l } // Compare a number with the operand of RE_LNUM, RE_COL or RE_VCOL. -static int re_num_cmp(uint32_t val, uint8_t *scan) +static int re_num_cmp(uint32_t val, const uint8_t *scan) { uint32_t n = (uint32_t)OPERAND_MIN(scan); @@ -8472,7 +8472,7 @@ static void realloc_post_list(void) // to the closing brace. // Keep in mind that 'ignorecase' applies at execution time, thus [a-z] may // need to be interpreted as [a-zA-Z]. -static int nfa_recognize_char_class(uint8_t *start, uint8_t *end, int extra_newl) +static int nfa_recognize_char_class(uint8_t *start, const uint8_t *end, int extra_newl) { #define CLASS_not 0x80 #define CLASS_af 0x40 @@ -13356,7 +13356,7 @@ static void nfa_save_listids(nfa_regprog_T *prog, int *list) } // Restore list IDs from "list" to all NFA states. -static void nfa_restore_listids(nfa_regprog_T *prog, int *list) +static void nfa_restore_listids(nfa_regprog_T *prog, const int *list) { int i; nfa_state_T *p; |