Skip to content

Commit 1b8defd

Browse files
[clang] Proofread LanguageExtensions.rst (#149729)
1 parent 507ff29 commit 1b8defd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

clang/docs/LanguageExtensions.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ for support for non-standardized features, i.e. features not prefixed ``c_``,
138138
``cxx_`` or ``objc_``.
139139

140140
Another use of ``__has_feature`` is to check for compiler features not related
141-
to the language standard, such as e.g. :doc:`AddressSanitizer
141+
to the language standard, such as :doc:`AddressSanitizer
142142
<AddressSanitizer>`.
143143

144144
If the ``-pedantic-errors`` option is given, ``__has_extension`` is equivalent
@@ -377,8 +377,8 @@ Builtin Macros
377377

378378
``__FILE_NAME__``
379379
Clang-specific extension that functions similar to ``__FILE__`` but only
380-
renders the last path component (the filename) instead of an invocation
381-
dependent full path to that file.
380+
renders the last path component (the filename) instead of an
381+
invocation-dependent full path to that file.
382382

383383
``__COUNTER__``
384384
Defined to an integer value that starts at zero and is incremented each time
@@ -716,7 +716,7 @@ See also :ref:`langext-__builtin_shufflevector`, :ref:`langext-__builtin_convert
716716
a NEON vector or an SVE vector, it's only available in C++ and uses normal bool
717717
conversions (that is, != 0).
718718
If it's an extension (OpenCL) vector, it's only available in C and OpenCL C.
719-
And it selects base on signedness of the condition operands (OpenCL v1.1 s6.3.9).
719+
And it selects based on signedness of the condition operands (OpenCL v1.1 s6.3.9).
720720
.. [#] sizeof can only be used on vector length specific SVE types.
721721
.. [#] Clang does not allow the address of an element to be taken while GCC
722722
allows this. This is intentional for vectors with a boolean element type and
@@ -857,7 +857,7 @@ Each builtin returns a scalar equivalent to applying the specified
857857
operation(x, y) as recursive even-odd pairwise reduction to all vector
858858
elements. ``operation(x, y)`` is repeatedly applied to each non-overlapping
859859
even-odd element pair with indices ``i * 2`` and ``i * 2 + 1`` with
860-
``i in [0, Number of elements / 2)``. If the numbers of elements is not a
860+
``i in [0, Number of elements / 2)``. If the number of elements is not a
861861
power of 2, the vector is widened with neutral elements for the reduction
862862
at the end to the next power of 2.
863863

@@ -1491,7 +1491,7 @@ C++14 digit separators
14911491

14921492
Use ``__cpp_digit_separators`` to determine if support for digit separators
14931493
using single quotes (for instance, ``10'000``) is enabled. At this time, there
1494-
is no corresponding ``__has_feature`` name
1494+
is no corresponding ``__has_feature`` name.
14951495

14961496
C++14 generalized lambda capture
14971497
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1545,7 +1545,7 @@ C++ type aware allocators
15451545
^^^^^^^^^^^^^^^^^^^^^^^^^
15461546

15471547
Use ``__has_extension(cxx_type_aware_allocators)`` to determine the existence of
1548-
support for the future C++2d type aware allocator feature. For full details see
1548+
support for the future C++2d type aware allocator feature. For full details, see
15491549
:doc:`C++ Type Aware Allocators <CXXTypeAwareAllocators>` for additional details.
15501550

15511551
C11
@@ -1643,7 +1643,7 @@ Modules
16431643
Use ``__has_feature(modules)`` to determine if Modules have been enabled.
16441644
For example, compiling code with ``-fmodules`` enables the use of Modules.
16451645

1646-
More information could be found `here <https://clang.llvm.org/docs/Modules.html>`_.
1646+
More information can be found `here <https://clang.llvm.org/docs/Modules.html>`_.
16471647

16481648
Language Extensions Back-ported to Previous Standards
16491649
=====================================================
@@ -1878,7 +1878,7 @@ The following type trait primitives are supported by Clang. Those traits marked
18781878
C++26 relocatable types, and types which
18791879
were made trivially relocatable via the ``clang::trivial_abi`` attribute.
18801880
This trait is deprecated and should be replaced by
1881-
``__builtin_is_cpp_trivially_relocatable``. Note however that it is generally
1881+
``__builtin_is_cpp_trivially_relocatable``. Note, however, that it is generally
18821882
unsafe to relocate a C++-relocatable type with ``memcpy`` or ``memmove``;
18831883
use ``__builtin_trivially_relocate``.
18841884
* ``__builtin_is_cpp_trivially_relocatable`` (C++): Returns true if an object

0 commit comments

Comments
 (0)