1 Commits

Author SHA1 Message Date
Carlos Galvez
fb0ef6b66e
[clang-tidy] Create bugprone-bitwise-pointer-cast check (#108083)
To detect unsafe usages of casting a pointer to another via copying
the bytes from one into the other, either via std::bit_cast or via
memcpy. This is currently not caught by any other means.

Fixes #106987

---------

Co-authored-by: Carlos Gálvez <carlos.galvez@zenseact.com>
2024-10-06 12:21:09 +02:00