Open PiotrZSL opened 9 months ago
@llvm/issue-subscribers-clang-tidy
Author: Piotr Zegar (PiotrZSL)
I think this could be expanded to bugprone-round-trip-conversions
- is that the meaning of the check? If so this would be most powerful with the full static analyzer to check across function boundaries. I suspect this could be really useful in that case
I'm adding this here so, i wouldn't forget.
Example not the best but, idea is to find all expressions (sometimes multiline) where input is an integer and output is an integer, but calculation is done on floating-point. Sometimes by changing order of operation entire calculation could be done fully on integers.
Check could have also other names.