[clang-tools-extra] [clang-tidy] Disable bugprone-multi-level-pointer-conversion in C code (PR #141209)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Fri May 23 03:50:45 PDT 2025


https://github.com/PiotrZSL commented:

I'm not sure about this. This check is about IMPLICIT casts, you can always do explicit cast in C (via functional cast or c-style  cast) or C++ (reinterpret_cast) to say that mutli-level pointer conversion is expected in that place.

If some C project got lot of such issues that they don't want to fix, then probably they should just disable a check.

In such case I don't see a reason to limit check to C++ only always. 
It still could be done via some check option.


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


More information about the cfe-commits mailing list