mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
build: treat clang-tidy warnings as errors (#22238)
This commit is contained in:
parent
f573fcbc0d
commit
47638706a3
@ -1,3 +1,4 @@
|
|||||||
|
WarningsAsErrors: '*'
|
||||||
Checks: >
|
Checks: >
|
||||||
-*,
|
-*,
|
||||||
|
|
||||||
|
@ -3410,7 +3410,7 @@ static int eval_index(char **arg, typval_T *rettv, int evaluate, int verbose)
|
|||||||
if (n1 >= len || n2 < 0 || n1 > n2) {
|
if (n1 >= len || n2 < 0 || n1 > n2) {
|
||||||
v = NULL;
|
v = NULL;
|
||||||
} else {
|
} else {
|
||||||
v = xmemdupz(s + n1, (size_t)(n2 - n1 + 1));
|
v = xmemdupz(s + n1, (size_t)n2 - (size_t)n1 + 1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// The resulting variable is a string of a single
|
// The resulting variable is a string of a single
|
||||||
|
@ -923,7 +923,7 @@ int do_record(int c)
|
|||||||
dict_T *dict = get_v_event(&save_v_event);
|
dict_T *dict = get_v_event(&save_v_event);
|
||||||
|
|
||||||
// The recorded text contents.
|
// The recorded text contents.
|
||||||
char *p = (char *)get_recorded();
|
char *p = get_recorded();
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
// Remove escaping for K_SPECIAL in multi-byte chars.
|
// Remove escaping for K_SPECIAL in multi-byte chars.
|
||||||
vim_unescape_ks(p);
|
vim_unescape_ks(p);
|
||||||
|
Loading…
Reference in New Issue
Block a user