[clang-tools-extra] [clang-tidy] Rename `google-readability-casting` to `modernize-avoid-c-style-cast` (PR #171058)
Islam Imad via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 9 02:32:21 PST 2025
================
@@ -0,0 +1,35 @@
+.. title:: clang-tidy - modernize-avoid-c-style-cast
+
+modernize-avoid-c-style-cast
+============================
+
+This check is similar to `-Wold-style-cast`, but it suggests automated fixes
+in some cases. The reported locations should not be different from the ones
+generated by `-Wold-style-cast`.
+
+C-style casts can perform a variety of different conversions (``const_cast``,
+``static_cast``, ``reinterpret_cast``, or a combination). This makes them
+dangerous as the intent is not clear, and they can silently perform unsafe
+conversions between incompatible types.
----------------
Islam-Imad wrote:
Yes it make sense :)
https://github.com/llvm/llvm-project/pull/171058
More information about the cfe-commits
mailing list