[clang-tools-extra] [clang-tidy] Correcting issues in `readability-implicit-bool-conversion` on C23 (PR #92241)

Danny Mösch via cfe-commits cfe-commits at lists.llvm.org
Fri May 17 14:19:52 PDT 2024


================
@@ -368,7 +368,8 @@ Changes in existing checks
 - Improved :doc:`readability-implicit-bool-conversion
   <clang-tidy/checks/readability/implicit-bool-conversion>` check to provide
   valid fix suggestions for ``static_cast`` without a preceding space and
-  fixed problem with duplicate parentheses in double implicit casts.
+  fixed problem with duplicate parentheses in double implicit casts. Corrected
+  the fix suggestions for C23 by using C-style casts instead of ``static_cast``.
----------------
SimplyDanny wrote:

That makes sense, even though it's not super obvious at first.

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


More information about the cfe-commits mailing list