================
@@ -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.
----------------
localspook wrote:

I think it would be more logical to swap the order of these two paragraphs. The 
second one reads like an introduction to the check, the first one gives some 
more specific details.

https://github.com/llvm/llvm-project/pull/171058
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to