mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +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:
@@ -489,7 +489,7 @@ void eval_clear(void)
|
||||
|
||||
/// Set an internal variable to a string value. Creates the variable if it does
|
||||
/// not already exist.
|
||||
void set_internal_string_var(const char *name, char *value)
|
||||
void set_internal_string_var(const char *name, char *value) // NOLINT(readability-non-const-parameter)
|
||||
FUNC_ATTR_NONNULL_ARG(1)
|
||||
{
|
||||
typval_T tv = {
|
||||
@@ -4225,11 +4225,11 @@ bool garbage_collect(bool testing)
|
||||
|
||||
// history items (ShaDa additional elements)
|
||||
if (p_hi) {
|
||||
for (uint8_t i = 0; i < HIST_COUNT; i++) {
|
||||
for (HistoryType i = 0; i < HIST_COUNT; i++) {
|
||||
const void *iter = NULL;
|
||||
do {
|
||||
histentry_T hist;
|
||||
iter = hist_iter(iter, i, false, &hist);
|
||||
iter = hist_iter(iter, (uint8_t)i, false, &hist);
|
||||
if (hist.hisstr != NULL) {
|
||||
ABORTING(set_ref_list)(hist.additional_elements, copyID);
|
||||
}
|
||||
@@ -8311,7 +8311,7 @@ repeat:
|
||||
/// "flags" can be "g" to do a global substitute.
|
||||
///
|
||||
/// @return an allocated string, NULL for error.
|
||||
char *do_string_sub(char *str, char *pat, char *sub, typval_T *expr, char *flags)
|
||||
char *do_string_sub(char *str, char *pat, char *sub, typval_T *expr, const char *flags)
|
||||
{
|
||||
int sublen;
|
||||
regmatch_T regmatch;
|
||||
|
Reference in New Issue
Block a user