[clang-tools-extra] 2f16cbc - [clang-tidy][NFC][doc] fix typos in docs. (#138305)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 2 11:41:47 PDT 2025
Author: Baranov Victor
Date: 2025-05-02T20:41:43+02:00
New Revision: 2f16cbc700004c9d60c4ea03d102ce5d3b1343b8
URL: https://github.com/llvm/llvm-project/commit/2f16cbc700004c9d60c4ea03d102ce5d3b1343b8
DIFF: https://github.com/llvm/llvm-project/commit/2f16cbc700004c9d60c4ea03d102ce5d3b1343b8.diff
LOG: [clang-tidy][NFC][doc] fix typos in docs. (#138305)
Fixed typos in docs of `clang-tidy` checks.
Added:
Modified:
clang-tools-extra/docs/clang-tidy/checks/boost/use-ranges.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone/casting-through-void.rst
Removed:
################################################################################
diff --git a/clang-tools-extra/docs/clang-tidy/checks/boost/use-ranges.rst b/clang-tools-extra/docs/clang-tidy/checks/boost/use-ranges.rst
index 4c032ad32f4fd..01b0024684919 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/boost/use-ranges.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/boost/use-ranges.rst
@@ -64,7 +64,7 @@ Calls to the following std library algorithms are checked:
``std::mismatch``,
``std::next_permutation``,
``std::none_of``,
-``std::parital_sum``,
+``std::partial_sum``,
``std::partial_sort_copy``,
``std::partition_copy``,
``std::partition_point``,
diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone/casting-through-void.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone/casting-through-void.rst
index d9f94b6a3f20b..21efda444e2ff 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/bugprone/casting-through-void.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone/casting-through-void.rst
@@ -26,7 +26,7 @@ Note: it is expected that, after applying the suggested fix and using
<../cppcoreguidelines/pro-type-reinterpret-cast>` will emit a warning.
This is intentional: ``reinterpret_cast`` is a dangerous operation that can
easily break the strict aliasing rules when dereferencing the casted pointer,
-invoking Undefined Behavior. The warning is there to prompt users to carefuly
+invoking Undefined Behavior. The warning is there to prompt users to carefully
analyze whether the usage of ``reinterpret_cast`` is safe, in which case the
warning may be suppressed.
More information about the cfe-commits
mailing list