We just caught a tiny bug that I would have expected Clang-Tidy to catch for us, so please let me know if this isn't expected behavior. We have the following piece of code
float value = 3.4f; //
result = function(&a, b, c, value);
Where value in the function definition is defined as a uint8_t
:
uint8_t function(float* a, uint8_t b, float c, uint8_t value);
So we placed a float in a uint8_t
, which casts it to integers, but somehow clang-tidy didn't find a problem with this. Are we using it wrong or doesn't it detect uint8_t
's, just ints?
Thanks in advance!