mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 06:16:08 +00:00
refactor: clang-tidy fixes to silence clangd warning (#20683)
* refactor: readability-uppercase-literal-suffix * refactor: readability-named-parameter * refactor: bugprone-suspicious-string-compare * refactor: google-readability-casting * refactor: readability-redundant-control-flow * refactor: bugprone-too-small-loop-variable * refactor: readability-non-const-parameter * refactor: readability-avoid-const-params-in-decls * refactor: google-readability-todo * refactor: readability-inconsistent-declaration-parameter-name * refactor: bugprone-suspicious-missing-comma * refactor: remove noisy or slow warnings
This commit is contained in:
@@ -572,7 +572,7 @@ bool ins_compl_accept_char(int c)
|
||||
|
||||
/// Get the completed text by inferring the case of the originally typed text.
|
||||
/// If the result is in allocated memory "tofree" is set to it.
|
||||
static char_u *ins_compl_infercase_gettext(char_u *str, int char_len, int compl_char_len,
|
||||
static char_u *ins_compl_infercase_gettext(const char_u *str, int char_len, int compl_char_len,
|
||||
int min_len, char **tofree)
|
||||
{
|
||||
bool has_lower = false;
|
||||
@@ -1378,7 +1378,8 @@ theend:
|
||||
/// skipping the word at 'skip_word'.
|
||||
///
|
||||
/// @return OK on success.
|
||||
static int thesaurus_add_words_in_line(char *fname, char_u **buf_arg, int dir, char_u *skip_word)
|
||||
static int thesaurus_add_words_in_line(char *fname, char_u **buf_arg, int dir,
|
||||
const char_u *skip_word)
|
||||
{
|
||||
int status = OK;
|
||||
|
||||
|
Reference in New Issue
Block a user