Does CPPCheck flag a warning when a possible truncation might happen due to implicit conversion of data types?
Can it also be done for proprietary data types?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Does CPPCheck flag a warning when a possible truncation might happen due to implicit conversion of data types?
Can it also be done for proprietary data types?
Thanks!
Not currently.
I do not want to have "lint" warnings about it. For instance whenever a 32-bit type is implicitly converted to 16-bit.
like:
But when there is actual truncation, it sounds good to warn. I think it should be relatively simple to add such warnings.
example:
Last edit: Daniel Marjamäki 2016-09-30