[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:45 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tidy
Author: mitchell (zeyi2)
<details>
<summary>Changes</summary>
Related discussion: https://github.com/llvm/llvm-project/pull/171058#discussion_r2602100364
---
Full diff: https://github.com/llvm/llvm-project/pull/171413.diff
2 Files Affected:
- (modified) clang-tools-extra/docs/clang-tidy/checks/google/readability-casting.rst (+2)
- (modified) clang-tools-extra/docs/clang-tidy/checks/modernize/avoid-c-style-cast.rst (+1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/171413
More information about the cfe-commits
mailing list