[clang-tidy] Fix documentation typos (NFC)
authorKazu Hirata <kazu@google.com>
Wed, 1 Sep 2021 15:48:31 +0000 (08:48 -0700)
committerKazu Hirata <kazu@google.com>
Wed, 1 Sep 2021 15:48:31 +0000 (08:48 -0700)
13 files changed:
clang-tools-extra/docs/clang-tidy/checks/abseil-no-internal-dependencies.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-time-subtraction.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-fold-init-type.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-redundant-branch-condition.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-signal-handler.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-memory-comparison.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-too-small-loop-variable.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-unhandled-exception-at-new.rst
clang-tools-extra/docs/clang-tidy/checks/cert-oop57-cpp.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-narrowing-conversions.rst
clang-tools-extra/docs/clang-tidy/checks/google-upgrade-googletest-case.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-no-assembler.rst
clang-tools-extra/docs/clang-tidy/checks/readability-redundant-member-init.rst

index 75e72ad..1032cc3 100644 (file)
@@ -5,7 +5,7 @@ abseil-no-internal-dependencies
 
 Warns if code using Abseil depends on internal details. If something is in a
 namespace that includes the word "internal", code is not allowed to depend upon
-it beaucse it’s an implementation detail. They cannot friend it, include it,
+it because it’s an implementation detail. They cannot friend it, include it,
 you mention it or refer to it in any way. Doing so violates Abseil's
 compatibility guidelines and may result in breakage. See
 https://abseil.io/about/compatibility for more information.
index 196c073..c717ed3 100644 (file)
@@ -25,7 +25,7 @@ Examples:
   int x;
   absl::Time t;
 
-  // Original - absl::Duration result and first operand is a absl::Time.
+  // Original - absl::Duration result and first operand is an absl::Time.
   absl::Duration d = absl::Seconds(absl::ToUnixSeconds(t) - x);
 
   // Suggestion - Perform subtraction in the Time domain instead.
index 3b1bd7f..8c6872d 100644 (file)
@@ -11,7 +11,7 @@ the latter, with ``operator+`` by default. This can cause loss of precision
 through:
 
 - Truncation: The following code uses a floating point range and an int
-  initial value, so trucation will happen at every application of ``operator+``
+  initial value, so truncation will happen at every application of ``operator+``
   and the result will be `0`, which might not be what the user expected.
 
 .. code-block:: c++
index c274691..a6fff9c 100644 (file)
@@ -41,7 +41,7 @@ is an operand of a logical "and" (``&&``) or a logical "or" (``||``) operator:
 
 In the first case (logical "and") the suggested fix is to remove the redundant
 condition variable and keep the other side of the ``&&``. In the second case
-(logical "or") the whole ``if`` is removed similarily to the simple case on the
+(logical "or") the whole ``if`` is removed similarly to the simple case on the
 top.
 
 The condition of the outer ``if`` statement may also be a logical "and" (``&&``)
index fa05460..3ef0571 100644 (file)
@@ -20,7 +20,7 @@ and has an alias name ``cert-sig30-c``.
 
 .. option:: AsyncSafeFunctionSet
 
-  Selects wich set of functions is considered as asynchronous-safe
+  Selects which set of functions is considered as asynchronous-safe
   (and therefore allowed in signal handlers). Value ``minimal`` selects
   a minimal set that is defined in the CERT SIG30-C rule and includes functions
   ``abort()``, ``_Exit()``, ``quick_exit()`` and ``signal()``. Value ``POSIX``
index a2d5c6d..2ae67ea 100644 (file)
@@ -8,12 +8,12 @@ arguments. The following cases are covered:
 
 **Case 1: Non-standard-layout type**
 
-Comparing the object representaions of non-standard-layout objects may not
+Comparing the object representations of non-standard-layout objects may not
 properly compare the value representations.
 
 **Case 2: Types with no unique object representation**
 
-Objects with the same value may not have the same object representaion.
+Objects with the same value may not have the same object representation.
 This may be caused by padding or floating-point types.
 
 See also: 
index 702541d..1381adc 100644 (file)
@@ -33,7 +33,7 @@ a larger user input.
   Upper limit for the magnitude bits of the loop variable. If it's set the check
   filters out those catches in which the loop variable's type has more magnitude
   bits as the specified upper limit. The default value is 16.
-  For example, if the user sets this option to 31 (bits), then a 32-bit ``unsigend int``
+  For example, if the user sets this option to 31 (bits), then a 32-bit ``unsigned int``
   is ignored by the check, however a 32-bit ``int`` is not (A 32-bit ``signed int``
   has 31 magnitude bits).
 
index 01f59af..764ef7a 100644 (file)
@@ -21,5 +21,5 @@ is allowed to propagate out of the function (exception handler is checked for
 types ``std::bad_alloc``, ``std::exception``, and catch-all handler).
 The check assumes that any user-defined ``operator new`` is either
 ``noexcept`` or may throw an exception of type ``std::bad_alloc`` (or derived
-from it). Other exception types or exceptions occuring in the objects's
+from it). Other exception types or exceptions occurring in the objects's
 constructor are not taken into account.
index ca78976..653ed20 100644 (file)
@@ -11,7 +11,7 @@ Options
 
 .. option:: MemSetNames
 
-   Specify extra functions to flag that act similarily to ``memset``.
+   Specify extra functions to flag that act similarly to ``memset``.
    Specify names in a semicolon delimited list.
    Default is an empty string.
    The check will detect the following functions:
@@ -19,7 +19,7 @@ Options
 
 .. option:: MemCpyNames
 
-   Specify extra functions to flag that act similarily to ``memcpy``.
+   Specify extra functions to flag that act similarly to ``memcpy``.
    Specify names in a semicolon delimited list.
    Default is an empty string.
    The check will detect the following functions:
@@ -28,7 +28,7 @@ Options
 
 .. option:: MemCmpNames
 
-   Specify extra functions to flag that act similarily to ``memcmp``.
+   Specify extra functions to flag that act similarly to ``memcmp``.
    Specify names in a semicolon delimited list.
    Default is an empty string.
    The check will detect the following functions:
index 3502fb9..4085bce 100644 (file)
@@ -44,7 +44,7 @@ Options
 .. option:: WarnWithinTemplateInstantiation
 
     When `true`, the check will warn on narrowing conversions within template
-    instantations. `false` by default.
+    instantiations. `false` by default.
 
 .. option:: WarnOnEquivalentBitWidth
 
index 511569e..8759283 100644 (file)
@@ -49,5 +49,5 @@ becomes
 
 For better consistency of user code, the check renames both virtual and
 non-virtual member functions with matching names in derived types. The check
-tries to provide a only warning when a fix cannot be made safely, as is the case
+tries to provide only a warning when a fix cannot be made safely, as is the case
 with some template and macro uses.
index 8295895..0c5d3a4 100644 (file)
@@ -5,6 +5,6 @@ hicpp-no-assembler
 
 Check for assembler statements. No fix is offered.
 
-Inline assembler is forbidden by the `High Intergrity C++ Coding Standard
+Inline assembler is forbidden by the `High Integrity C++ Coding Standard
 <http://www.codingstandard.com/section/7-5-the-asm-declaration/>`_ 
 as it restricts the portability of code.
index 57d5512..b2f86c4 100644 (file)
@@ -29,7 +29,7 @@ Options
 
     When `true`, the check will ignore unnecessary base class initializations
     within copy constructors, since some compilers issue warnings/errors when
-    base classes are not explicitly intialized in copy constructors. For example,
+    base classes are not explicitly initialized in copy constructors. For example,
     ``gcc`` with ``-Wextra`` or ``-Werror=extra`` issues warning or error
     ``base class 'Bar' should be explicitly initialized in the copy constructor``
     if ``Bar()`` were removed in the following example: