Skip to content

Commit 8866558

Browse files
[clang] Fix typos in documentation
1 parent e01c063 commit 8866558

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

clang/docs/ControlFlowIntegrityDesign.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ address point. Note that libraries like libcxxabi do assume this property.
349349

350350
(2) virtual function entry layout property
351351

352-
For each virtual function the distance between an virtual table entry for this function and the corresponding
352+
For each virtual function the distance between a virtual table entry for this function and the corresponding
353353
address point is always the same. This property ensures that dynamic dispatch still works with the interleaving layout.
354354

355355
Note that the interleaving scheme in the CFI implementation guarantees both properties above whereas the original scheme proposed

clang/docs/LanguageExtensions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,7 @@ would be +1. ``ns_returns_autoreleased`` specifies that the returned object is
20192019
autorelease pool.
20202020
20212021
**Usage**: The ``ns_consumed`` and ``cf_consumed`` attributes can be placed on
2022-
an parameter declaration; they specify that the argument is expected to have a
2022+
a parameter declaration; they specify that the argument is expected to have a
20232023
+1 retain count, which will be balanced in some way by the function or method.
20242024
The ``ns_consumes_self`` attribute can only be placed on an Objective-C
20252025
method; it specifies that the method expects its ``self`` parameter to have a
@@ -3601,7 +3601,7 @@ scalar calls of ``__builtin_isfpclass`` applied to the input elementwise.
36013601
The result of ``__builtin_isfpclass`` is a boolean value, if the first argument
36023602
is a scalar, or an integer vector with the same element count as the first
36033603
argument. The element type in this vector has the same bit length as the
3604-
element of the the first argument type.
3604+
element of the first argument type.
36053605
36063606
This function never raises floating-point exceptions and does not canonicalize
36073607
its input. The floating-point argument is not promoted, its data class is
@@ -4959,7 +4959,7 @@ Clang supports the following match rules:
49594959
- ``record(unless(is_union))``: Can be used to apply attributes only to
49604960
``struct`` and ``class`` declarations.
49614961
4962-
- ``enum``: Can be be used to apply attributes to enumeration declarations.
4962+
- ``enum``: Can be used to apply attributes to enumeration declarations.
49634963
49644964
- ``enum_constant``: Can be used to apply attributes to enumerators.
49654965

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ New Compiler Flags
253253
the preprocessed text to the output. This can greatly reduce the size of the
254254
preprocessed output, which can be helpful when trying to reduce a test case.
255255
* ``-fassume-nothrow-exception-dtor`` is added to assume that the destructor of
256-
an thrown exception object will not throw. The generated code for catch
256+
a thrown exception object will not throw. The generated code for catch
257257
handlers will be smaller. A throw expression of a type with a
258258
potentially-throwing destructor will lead to an error.
259259

clang/docs/SanitizerCoverage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ offsets in the corresponding binary/DSO that were executed during the run.
496496
Sancov Tool
497497
-----------
498498

499-
An simple ``sancov`` tool is provided to process coverage files.
499+
A simple ``sancov`` tool is provided to process coverage files.
500500
The tool is part of LLVM project and is currently supported only on Linux.
501501
It can handle symbolization tasks autonomously without any extra support
502502
from the environment. You need to pass .sancov files (named

0 commit comments

Comments
 (0)