[clang-tools-extra] 6b59a95 - [clang-tidy] Fix documentation in `modernize-avoid-c-style-cast` (#171413)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 9 03:21:41 PST 2025
Author: mitchell
Date: 2025-12-09T19:21:37+08:00
New Revision: 6b59a95506cd9b56c9c74f1f5c05059245fa110e
URL: https://github.com/llvm/llvm-project/commit/6b59a95506cd9b56c9c74f1f5c05059245fa110e
DIFF: https://github.com/llvm/llvm-project/commit/6b59a95506cd9b56c9c74f1f5c05059245fa110e.diff
LOG: [clang-tidy] Fix documentation in `modernize-avoid-c-style-cast` (#171413)
Related discussion:
https://github.com/llvm/llvm-project/pull/171058#discussion_r2602100364
Added:
Modified:
clang-tools-extra/docs/clang-tidy/checks/google/readability-casting.rst
clang-tools-extra/docs/clang-tidy/checks/modernize/avoid-c-style-cast.rst
Removed:
################################################################################
diff --git a/clang-tools-extra/docs/clang-tidy/checks/google/readability-casting.rst b/clang-tools-extra/docs/clang-tidy/checks/google/readability-casting.rst
index 5ef3554fc4d95..31ee3bd457d03 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/google/readability-casting.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/google/readability-casting.rst
@@ -10,3 +10,5 @@ for more information.
Finds usages of C-style casts.
https://google.github.io/styleguide/cppguide.html#Casting
+
+Corresponding cpplint.py check name: `readability/casting`.
diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize/avoid-c-style-cast.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize/avoid-c-style-cast.rst
index b88a928398612..c43fb00d02d09 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/modernize/avoid-c-style-cast.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/modernize/avoid-c-style-cast.rst
@@ -3,6 +3,7 @@
modernize-avoid-c-style-cast
============================
+Finds usages of C-style casts.
C-style casts can perform a variety of
diff erent conversions (``const_cast``,
``static_cast``, ``reinterpret_cast``, or a combination). This makes them
More information about the cfe-commits
mailing list