Skip to content

Commit d729076

Browse files
[clang] Proofread LanguageExtensions.rst (#151802)
1 parent 02b89b8 commit d729076

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

clang/docs/LanguageExtensions.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2018,7 +2018,7 @@ even if there is no valid ``std::tuple_element`` specialization or suitable
20182018
Blocks
20192019
======
20202020

2021-
The syntax and high level language feature description is in
2021+
The syntax and high-level language feature description is in
20222022
:doc:`BlockLanguageSpec<BlockLanguageSpec>`. Implementation and ABI details for
20232023
the clang implementation are in :doc:`Block-ABI-Apple<Block-ABI-Apple>`.
20242024

@@ -2088,7 +2088,7 @@ producing an object with the following member functions
20882088
constexpr size_t size() const;
20892089

20902090
such as ``std::string``, ``std::string_view``, ``std::vector<char>``.
2091-
This mechanism follow the same rules as ``static_assert`` messages in
2091+
This mechanism follows the same rules as ``static_assert`` messages in
20922092
C++26, see ``[dcl.pre]/p12``.
20932093

20942094
Query for this feature with ``__has_extension(gnu_asm_constexpr_strings)``.
@@ -2335,7 +2335,7 @@ Objective-C Autosynthesis of Properties
23352335
23362336
Clang provides support for autosynthesis of declared properties. Using this
23372337
feature, clang provides default synthesis of those properties not declared
2338-
@dynamic and not having user provided backing getter and setter methods.
2338+
@dynamic and not having user-provided backing getter and setter methods.
23392339
``__has_feature(objc_default_synthesize_properties)`` checks for availability
23402340
of this feature in version of clang being used.
23412341
@@ -2349,7 +2349,7 @@ In Objective-C, functions and methods are generally assumed to follow the
23492349
<https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html>`_
23502350
conventions for ownership of object arguments and
23512351
return values. However, there are exceptions, and so Clang provides attributes
2352-
to allow these exceptions to be documented. This are used by ARC and the
2352+
to allow these exceptions to be documented. These are used by ARC and the
23532353
`static analyzer <https://clang-analyzer.llvm.org>`_ Some exceptions may be
23542354
better described using the ``objc_method_family`` attribute instead.
23552355
@@ -2575,7 +2575,7 @@ Such functionality is not conformant and does not guarantee to compile
25752575
correctly in any circumstances. It can be used if:
25762576
25772577
- the kernel source does not contain call expressions to (member-) function
2578-
pointers, or virtual functions. For example this extension can be used in
2578+
pointers, or virtual functions. For example, this extension can be used in
25792579
metaprogramming algorithms to be able to specify/detect types generically.
25802580
25812581
- the generated kernel binary does not contain indirect calls because they
@@ -2613,7 +2613,7 @@ functions with variadic prototypes do not get generated in binary e.g. the
26132613
variadic prototype is used to specify a function type with any number of
26142614
arguments in metaprogramming algorithms in C++ for OpenCL.
26152615
2616-
This extensions can also be used when the kernel code is intended for targets
2616+
This extension can also be used when the kernel code is intended for targets
26172617
supporting the variadic arguments e.g. majority of CPU targets.
26182618
26192619
**Example of Use**:
@@ -2702,7 +2702,7 @@ address space qualifiers, therefore, other type qualifiers such as
27022702
Legacy 1.x atomics with generic address space
27032703
---------------------------------------------
27042704
2705-
Clang allows use of atomic functions from the OpenCL 1.x standards
2705+
Clang allows the use of atomic functions from the OpenCL 1.x standards
27062706
with the generic address space pointer in C++ for OpenCL mode.
27072707
27082708
This is a non-portable feature and might not be supported by all
@@ -2833,7 +2833,7 @@ to a possibly overlapping destination region. It takes five arguments.
28332833
The first argument is the destination WebAssembly table, and the second
28342834
argument is the source WebAssembly table. The third argument is the
28352835
destination index from where the copy starts, the fourth argument is the
2836-
source index from there the copy starts, and the fifth and last argument
2836+
source index from where the copy starts, and the fifth and last argument
28372837
is the number of elements to copy. It returns nothing.
28382838
28392839
.. code-block:: c++
@@ -3133,7 +3133,7 @@ Query for this feature with ``__has_builtin(__builtin_get_vtable_pointer)``.
31333133
------------------------------------
31343134
31353135
``__builtin_call_with_static_chain`` is used to perform a static call while
3136-
setting updating the static chain register.
3136+
updating the static chain register.
31373137
31383138
**Syntax**:
31393139
@@ -3245,7 +3245,7 @@ Query for this feature with ``__has_builtin(__builtin_readsteadycounter)``.
32453245
The ``__builtin_cpu_supports`` function detects if the run-time CPU supports
32463246
features specified in string argument. It returns a positive integer if all
32473247
features are supported and 0 otherwise. Feature names are target specific. On
3248-
AArch64 features are combined using ``+`` like this
3248+
AArch64, features are combined using ``+`` like this
32493249
``__builtin_cpu_supports("flagm+sha3+lse+rcpc2+fcma+memtag+bti+sme2")``.
32503250
If a feature name is not supported, Clang will issue a warning and replace
32513251
builtin by the constant 0.
@@ -3465,7 +3465,7 @@ Query for this feature with ``__has_builtin(__builtin_convertvector)``.
34653465
**Description**:
34663466
34673467
The '``__builtin_bitreverse``' family of builtins is used to reverse
3468-
the bitpattern of an integer value; for example ``0b10110110`` becomes
3468+
the bitpattern of an integer value; for example, ``0b10110110`` becomes
34693469
``0b01101101``. These builtins can be used within constant expressions.
34703470
34713471
``__builtin_rotateleft``
@@ -3970,7 +3970,7 @@ the debugging experience.
39703970
39713971
``__builtin_allow_runtime_check`` returns true if the check at the current
39723972
program ___location should be executed. It is expected to be used to implement
3973-
``assert`` like checks which can be safely removed by optimizer.
3973+
``assert`` like checks which can be safely removed by the optimizer.
39743974
39753975
**Syntax**:
39763976

0 commit comments

Comments
 (0)