[clang] [clang-tidy]Add new check bugprone-casting-through-void (PR #69465)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 18 10:09:44 PDT 2023


================
@@ -0,0 +1,32 @@
+.. title:: clang-tidy - bugprone-casting-through-void
+
+bugprone-casting-through-void
+=============================
+
+A check detects unsafe or redundant two-step casting operations involving ``void*``.
+
+Two-step type conversions via void* are discouraged for several reasons.
+
+1. They obscure code and impede its understandability, complicating maintenance.
----------------
PiotrZSL wrote:

consider using bullet points, (-)

https://github.com/llvm/llvm-project/pull/69465


More information about the cfe-commits mailing list