From 6b59a95506cd9b56c9c74f1f5c05059245fa110e Mon Sep 17 00:00:00 2001 From: mitchell Date: Tue, 9 Dec 2025 19:21:37 +0800 Subject: [PATCH] [clang-tidy] Fix documentation in `modernize-avoid-c-style-cast` (#171413) Related discussion: https://github.com/llvm/llvm-project/pull/171058#discussion_r2602100364 --- .../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 5ef3554fc4d9..31ee3bd457d0 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 b88a92839861..c43fb00d02d0 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