Linters / SAST tools to warn on ambiguous data types
Prithee, which C/C++ analyzers warn on ambiguous data types? I gather that `char` is platform specific.
Generally recommend explicit `int8_t` or `unsigned char` instead.
Perhaps some case can be made that deep system code, such as kernels, standard libraries, Generics/templates, and/or embedded work may have a need for platform relative implicit `char` signage. But I wonder if the everyday library or application would benefit from such checks.
Do gcc, clang, vera, cppcheck, etc. offer such a rule?
https://redd.it/1o64zp6
@r_cpp
Post #24050
27