| #
fb0ef6b6 |
| 06-Oct-2024 |
Carlos Galvez <carlosgalvezp@gmail.com> |
[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
[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>
show more ...
|