refactor: Add clang-tidy checks and simplify codebase

This commit is contained in:
Utkarsh Verma
2023-11-16 09:08:29 +05:30
parent f18100c2ee
commit c166ffe0b4
17 changed files with 130 additions and 78 deletions

View File

@@ -24,7 +24,7 @@ size_t truncate_utf8_string(char* const buffer, const size_t size,
unsigned short skip = 1;
// Multibyte unicode character
// Multibyte unicode character.
if ((ch & UTF8_MULTIBYTE_BIT) != 0) {
// Skip continuation bytes.
ch <<= 1;