mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +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:
@@ -3530,7 +3530,7 @@ static int soundalike_score(char *goodstart, char *badstart)
|
||||
/// The implementation of the algorithm comes from Aspell editdist.cpp,
|
||||
/// edit_distance(). It has been converted from C++ to C and modified to
|
||||
/// support multi-byte characters.
|
||||
static int spell_edit_score(slang_T *slang, char_u *badword, char_u *goodword)
|
||||
static int spell_edit_score(slang_T *slang, const char_u *badword, const char_u *goodword)
|
||||
{
|
||||
int *cnt;
|
||||
int j, i;
|
||||
@@ -3635,7 +3635,8 @@ static int spell_edit_score_limit(slang_T *slang, char_u *badword, char_u *goodw
|
||||
|
||||
/// Multi-byte version of spell_edit_score_limit().
|
||||
/// Keep it in sync with the above!
|
||||
static int spell_edit_score_limit_w(slang_T *slang, char_u *badword, char_u *goodword, int limit)
|
||||
static int spell_edit_score_limit_w(slang_T *slang, const char_u *badword, const char_u *goodword,
|
||||
int limit)
|
||||
{
|
||||
limitscore_T stack[10]; // allow for over 3 * 2 edits
|
||||
int stackidx;
|
||||
|
Reference in New Issue
Block a user