Carlos Galvez
d25e24a0eb
[clang-tidy] Suggest using reinterpret_cast in bugprone-casting-thro… ( #106784 )
...
…ugh-void
reinterpret_cast is the equivalent construct, and more clearly expresses
intent.
Co-authored-by: Carlos Gálvez <carlos.galvez@zenseact.com>
2024-09-04 11:49:16 +02:00
Piotr Zegar
889e60db2d
[clang-tidy] Ignore casts from void to void in bugprone-casting-through-void ( #90566 )
...
Improved bugprone-casting-through-void check by ignoring casts where
source is already a void pointer, making middle void pointer casts
bug-free.
Closes #87069
2024-05-02 04:42:42 +02:00
Congcong Cai
9a5c6f1760
[clang-tidy]Add new check bugprone-casting-through-void ( #69465 )
...
This check detects usage of ``static_cast`` pointer to the other pointer
throght `static_cast` to `void *` in C++ code.
Fixes : #68532
2023-10-20 09:29:06 -05:00