Skip to content

Add semantic patch to explicitly cast chars to unsigned for ctype.h

Ondřej Surý requested to merge 4327-minor-warning-about-ctype-h-function into main

Add a semantic patch to catch all the places where we pass 'char' to the <ctype.h> family of functions (isalpha() and friends, toupper(), tolower()). While it generally works because the way how these functions are constructed in the libc, it's safer to do the explicit cast.

Closes #4327 (closed)

Merge request reports