3 Commits

Author SHA1 Message Date
Carlos Galvez
30d8aebbe2
[clang-tidy] Add option to disable bugprone-multi-level-pointer-conversion in C code (#141209)
Sometimes a project may want to enable this check only in C++, and
disable it in C, since the patterns the check warns about are quite
common and idiomatic in C, and there are no better alternatives.
    
Fixes #140659

Co-authored-by: Carlos Gálvez <carlos.galvez@zenseact.com>
2025-06-07 21:52:23 +02:00
Piotr Zegar
b55fb567e4
[clang-tidy] Improve bugprone-multi-level-implicit-pointer-conversion (#94524)
Ignore implicit pointer conversions that are part of a cast expression

Closes #93959
2024-06-09 11:55:08 +02:00
Piotr Zegar
315946c57d [clang-tidy] Added bugprone-multi-level-implicit-pointer-conversion check
Detects implicit conversions between pointers of different levels of
indirection.

Reviewed By: xgupta

Differential Revision: https://reviews.llvm.org/D149084
2023-07-27 15:49:43 +00:00