refactor: clang-tidy in libtransmission (#2578)

* chore: enable cppcoreguidelines-slicing warning

* chore: enable readability-named-parameter warning

* chore: enable bugprone-reserved-identifier check

* chore: enable bugprone-not-null-terminated-result check

* chore: enable bugprone-sizeof-expression check

* chore: enable bugprone-incorrect-roundings check

* chore: enable misc-misplaced-const check

* chore: enable bugprone-suspicious-include check

* chore: enable bugprone-signed-char-misuse check

* chore: enable modernize-raw-string-literal check

* chore: enable readability-static-accessed-through-instance check

* chore: enable readability-implicit-bool-conversion check

* fixup! Merge branch 'main' into refactor/clang-tidy
This commit is contained in:
Charles Kerr
2022-02-06 22:28:36 -06:00
committed by GitHub
parent f9d068d7a0
commit ecef0feb0c
40 changed files with 143 additions and 161 deletions
+1 -1
View File
@@ -571,7 +571,7 @@ static void jsonStringFunc(tr_variant const* val, void* vdata)
break;
default:
if (isprint((unsigned char)sv.front()))
if (isprint((unsigned char)sv.front()) != 0)
{
*outwalk++ = sv.front();
}