Skip to content

Commit e0515c8

Browse files
[clang] Fix typos in documentation (#140663)
1 parent a754bc2 commit e0515c8

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

clang/docs/BoundsSafety.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ In C, arrays on function prototypes are promoted (or "decayed") to a pointer to
664664
its first element (e.g., ``&arr[0]``). In ``-fbounds-safety``, arrays are also
665665
decayed to pointers, but with the addition of an implicit bounds annotation,
666666
which includes variable-length arrays (VLAs). As shown in the following example,
667-
arrays on function prototypes are decalyed to corresponding ``__counted_by``
667+
arrays on function prototypes are decayed to corresponding ``__counted_by``
668668
pointers.
669669

670670
.. code-block:: c

clang/docs/BoundsSafetyAdoptionGuide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Annotate pointers on struct fields and function parameters if they are pointing
3939
to an array of object, with appropriate bounds annotations. Please see
4040
:doc:`BoundsSafety` to learn what kind of bounds annotations are available and
4141
their semantics. Note that local pointer variables typically don't need bounds
42-
annotations because they are implicitely a wide pointer (``__bidi_indexable``)
42+
annotations because they are implicitly a wide pointer (``__bidi_indexable``)
4343
that automatically carries the bounds information.
4444

4545
Address compiler diagnostics

clang/docs/HIPSupport.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ In other scenarios, calling virtual functions is not allowed.
259259
Explanation
260260
-----------
261261

262-
An object constructed on the device side contains a pointer to the virtual function table on the device side, which is not accessible in host code, and vice versa. Thus, trying to invoke virtual functions from a context different from where the object was constructed will be disallowed because the appropriate virtual table cannot be accessed. The virtual function tables for offloading devices with different architecures are different, therefore trying to invoke virtual functions from an offloading device with a different architecture than where the object is constructed is also disallowed.
262+
An object constructed on the device side contains a pointer to the virtual function table on the device side, which is not accessible in host code, and vice versa. Thus, trying to invoke virtual functions from a context different from where the object was constructed will be disallowed because the appropriate virtual table cannot be accessed. The virtual function tables for offloading devices with different architectures are different, therefore trying to invoke virtual functions from an offloading device with a different architecture than where the object is constructed is also disallowed.
263263

264264
Example Usage
265265
-------------

clang/docs/ReleaseNotes.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ Bug Fixes to Compiler Builtins
647647
- ``__is_trivially_relocatable`` has been deprecated, and uses should be replaced by
648648
``__builtin_is_cpp_trivially_relocatable``.
649649
Note that, it is generally unsafe to ``memcpy`` non-trivially copyable types that
650-
are ``__builtin_is_cpp_trivially_relocatable``. It is recommanded to use
650+
are ``__builtin_is_cpp_trivially_relocatable``. It is recommended to use
651651
``__builtin_trivially_relocate`` instead.
652652

653653
Bug Fixes to Attribute Support
@@ -703,7 +703,7 @@ Bug Fixes to C++ Support
703703
- Fix crash when evaluating the trailing requires clause of generic lambdas which are part of
704704
a pack expansion.
705705
- Fixes matching of nested template template parameters. (#GH130362)
706-
- Correctly diagnoses template template paramters which have a pack parameter
706+
- Correctly diagnoses template template parameters which have a pack parameter
707707
not in the last position.
708708
- Disallow overloading on struct vs class on dependent types, which is IFNDR, as
709709
this makes the problem diagnosable.
@@ -712,7 +712,7 @@ Bug Fixes to C++ Support
712712
- Clang now correctly parses ``if constexpr`` expressions in immediate function context. (#GH123524)
713713
- Fixed an assertion failure affecting code that uses C++23 "deducing this". (#GH130272)
714714
- Clang now properly instantiates destructors for initialized members within non-delegating constructors. (#GH93251)
715-
- Correctly diagnoses if unresolved using declarations shadows template paramters (#GH129411)
715+
- Correctly diagnoses if unresolved using declarations shadows template parameters (#GH129411)
716716
- Fixed C++20 aggregate initialization rules being incorrectly applied in certain contexts. (#GH131320)
717717
- Clang was previously coalescing volatile writes to members of volatile base class subobjects.
718718
The issue has been addressed by propagating qualifiers during derived-to-base conversions in the AST. (#GH127824)
@@ -819,7 +819,7 @@ Windows Support
819819
which makes ``offsetof`` provided by Microsoft's ``<stddef.h>`` to be defined
820820
correctly. (#GH59689)
821821

822-
- Clang now can process the `i128` and `ui128` integeral suffixes when MSVC
822+
- Clang now can process the `i128` and `ui128` integral suffixes when MSVC
823823
extensions are enabled. This allows for properly processing ``intsafe.h`` in
824824
the Windows SDK.
825825

clang/docs/UsersManual.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3650,7 +3650,7 @@ below. If multiple flags are present, the last one is used.
36503650
By default, Clang does not emit type information for types that are defined
36513651
but not used in a program. To retain the debug info for these unused types,
36523652
the negation **-fno-eliminate-unused-debug-types** can be used.
3653-
This can be particulary useful on Windows, when using NATVIS files that
3653+
This can be particularly useful on Windows, when using NATVIS files that
36543654
can reference const symbols that would otherwise be stripped, even in full
36553655
debug or standalone debug modes.
36563656

@@ -4267,7 +4267,7 @@ nosvm
42674267
^^^^^
42684268

42694269
Clang supports this attribute to comply to OpenCL v2.0 conformance, but it
4270-
does not have any effect on the IR. For more details reffer to the specification
4270+
does not have any effect on the IR. For more details refer to the specification
42714271
`section 6.7.2
42724272
<https://www.khronos.org/registry/cl/specs/opencl-2.0-openclc.pdf#49>`_
42734273

0 commit comments

Comments
 (0)