Question on the benefits of diagnosis. One person proposed to implement the search of all explicit type-C conversions in the PVS-Studio analyzer. Those. identify constructs of the form:
int *x = (int *)y; float a = float(b); float c = (float)(d);
The goal is to replace all these casts with safer options - reinterpret_cast / static_cast / const_cast. In the process of such refactoring, some defects may well be identified.
Of course, this is not revealing the real mistakes. And if this diagnostic is implemented, it will be in the [Customer's Specific Requests] section and disabled by default.
However, even in the benefits of this option, I'm not sure. I decided to ask a question. Need someone else to search for all the explicit type conversions in the style of C? Would someone like to do this refactoring of their code?