[clang-tools-extra] [clang-tidy] Create bugprone-bit-cast-pointers check (PR #108083)
Carlos Galvez via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 11 00:18:51 PDT 2024
carlosgalvezp wrote:
Perhaps we can start with pointer-to-pointer only, yes. Pointer-int conversions are still implementation-defined, but I guess it's less of a problem than UB.
The original paper only checked that both inputs are not pointers:
```cpp
!(is_pointer_v<From> &&
is_pointer_v<To>) &&
```
https://github.com/llvm/llvm-project/pull/108083
More information about the cfe-commits
mailing list