[clang-tools-extra] [clang-tidy] Fix documentation in `modernize-avoid-c-style-cast` (PR #171413)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 9 03:12:08 PST 2025
https://github.com/zeyi2 created https://github.com/llvm/llvm-project/pull/171413
Related discussion: https://github.com/llvm/llvm-project/pull/171058#discussion_r2602100364
>From eac8b7702d12c31d250464c9d6d7eeb030cb1c91 Mon Sep 17 00:00:00 2001
From: mtx <mitchell.xu2 at gmail.com>
Date: Tue, 9 Dec 2025 19:07:25 +0800
Subject: [PATCH] [clang-tidy] Fix documentation in
`modernize-avoid-c-style-cast`
---
.../docs/clang-tidy/checks/google/readability-casting.rst | 2 ++
.../docs/clang-tidy/checks/modernize/avoid-c-style-cast.rst | 1 +
2 files changed, 3 insertions(+)
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 different conversions (``const_cast``,
``static_cast``, ``reinterpret_cast``, or a combination). This makes them
More information about the cfe-commits
mailing list