@@ -2018,7 +2018,7 @@ even if there is no valid ``std::tuple_element`` specialization or suitable
2018
2018
Blocks
2019
2019
======
2020
2020
2021
- The syntax and high level language feature description is in
2021
+ The syntax and high- level language feature description is in
2022
2022
:doc: `BlockLanguageSpec<BlockLanguageSpec> `. Implementation and ABI details for
2023
2023
the clang implementation are in :doc: `Block-ABI-Apple<Block-ABI-Apple> `.
2024
2024
@@ -2088,7 +2088,7 @@ producing an object with the following member functions
2088
2088
constexpr size_t size() const;
2089
2089
2090
2090
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
2092
2092
C++26, see ``[dcl.pre]/p12 ``.
2093
2093
2094
2094
Query for this feature with ``__has_extension(gnu_asm_constexpr_strings) ``.
@@ -2335,7 +2335,7 @@ Objective-C Autosynthesis of Properties
2335
2335
2336
2336
Clang provides support for autosynthesis of declared properties. Using this
2337
2337
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.
2339
2339
``__has_feature(objc_default_synthesize_properties) `` checks for availability
2340
2340
of this feature in version of clang being used.
2341
2341
@@ -2349,7 +2349,7 @@ In Objective-C, functions and methods are generally assumed to follow the
2349
2349
<https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html> `_
2350
2350
conventions for ownership of object arguments and
2351
2351
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
2353
2353
`static analyzer <https://clang-analyzer.llvm.org >`_ Some exceptions may be
2354
2354
better described using the ``objc_method_family `` attribute instead.
2355
2355
@@ -2575,7 +2575,7 @@ Such functionality is not conformant and does not guarantee to compile
2575
2575
correctly in any circumstances. It can be used if:
2576
2576
2577
2577
- 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
2579
2579
metaprogramming algorithms to be able to specify/detect types generically.
2580
2580
2581
2581
- 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
2613
2613
variadic prototype is used to specify a function type with any number of
2614
2614
arguments in metaprogramming algorithms in C++ for OpenCL.
2615
2615
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
2617
2617
supporting the variadic arguments e.g . majority of CPU targets.
2618
2618
2619
2619
**Example of Use **:
@@ -2702,7 +2702,7 @@ address space qualifiers, therefore, other type qualifiers such as
2702
2702
Legacy 1.x atomics with generic address space
2703
2703
---------------------------------------------
2704
2704
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
2706
2706
with the generic address space pointer in C++ for OpenCL mode.
2707
2707
2708
2708
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.
2833
2833
The first argument is the destination WebAssembly table, and the second
2834
2834
argument is the source WebAssembly table. The third argument is the
2835
2835
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
2837
2837
is the number of elements to copy. It returns nothing.
2838
2838
2839
2839
.. code-block :: c++
@@ -3133,7 +3133,7 @@ Query for this feature with ``__has_builtin(__builtin_get_vtable_pointer)``.
3133
3133
------------------------------------
3134
3134
3135
3135
``__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.
3137
3137
3138
3138
**Syntax **:
3139
3139
@@ -3245,7 +3245,7 @@ Query for this feature with ``__has_builtin(__builtin_readsteadycounter)``.
3245
3245
The ``__builtin_cpu_supports `` function detects if the run-time CPU supports
3246
3246
features specified in string argument. It returns a positive integer if all
3247
3247
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
3249
3249
``__builtin_cpu_supports("flagm+sha3+lse+rcpc2+fcma+memtag+bti+sme2") ``.
3250
3250
If a feature name is not supported, Clang will issue a warning and replace
3251
3251
builtin by the constant 0.
@@ -3465,7 +3465,7 @@ Query for this feature with ``__has_builtin(__builtin_convertvector)``.
3465
3465
**Description **:
3466
3466
3467
3467
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
3469
3469
``0b01101101 ``. These builtins can be used within constant expressions.
3470
3470
3471
3471
``__builtin_rotateleft ``
@@ -3970,7 +3970,7 @@ the debugging experience.
3970
3970
3971
3971
``__builtin_allow_runtime_check `` returns true if the check at the current
3972
3972
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.
3974
3974
3975
3975
**Syntax **:
3976
3976
0 commit comments