lint: fix code for clang-tidy

This commit is contained in:
2025-06-21 01:26:49 +02:00
parent 6d30e889d5
commit 938166366f
14 changed files with 167 additions and 154 deletions

View File

@@ -10,7 +10,7 @@ char* trim_str(char* str) {
while (*str == ' ' || *str == '\t')
str++;
size_t i = strlen(str);
size_t i = strlen(str); // NOLINT(readability-identifier-length)
while (i > 0) {
if (str[i - 1] != ' ' && str[i - 1] != '\t' && str[i - 1] != '\n') break;
i--;