https://github.com/PiotrZSL approved this pull request.

LGTM.

About `static_cast<void *>(reinterpret_cast<void *>(&i));`:
- I'm working now on a check for redundant casts, it will detect this one, so 
no need to do it in this check.

You may consider adding support for double and more pointers, but that's not so 
so necessary as it work only with reinterprert_cast:
```
void double_ptr(int *ptr) {
 reinterpret_cast<int **>(reinterpret_cast<void**>(&ptr));
}
```


https://github.com/llvm/llvm-project/pull/69465
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to