Skip to content

Commit 48adfaf

Browse files
committed
doc: remove trailing whitespaces
1 parent 3f4468f commit 48adfaf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

clang/docs/FunctionEffectAnalysis.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ attached to functions, blocks, function pointers, lambdas, and member functions.
5454
The attribute applies only to the function itself. In particular, it does not apply to any nested
5555
functions or declarations, such as blocks, lambdas, and local classes.
5656

57-
This document uses the C++/C23 syntax ``[[clang::nonblocking]]``, since it parallels the placement
57+
This document uses the C++/C23 syntax ``[[clang::nonblocking]]``, since it parallels the placement
5858
of the ``noexcept`` specifier, and the attributes have other similarities to ``noexcept``. The GNU
59-
``__attribute__((nonblocking))`` syntax is also supported. Note that it requires a different
59+
``__attribute__((nonblocking))`` syntax is also supported. Note that it requires a different
6060
placement on a C++ type alias.
6161

6262
Like ``noexcept``, ``nonblocking`` and ``nonallocating`` have an optional argument, a compile-time
@@ -76,10 +76,10 @@ series of performance constraints. From weakest to strongest:
7676
- ``nonblocking``: The function type will never block on a lock, allocate memory on the heap,
7777
or throw an exception.
7878

79-
``nonblocking`` includes the ``nonallocating`` guarantee.
79+
``nonblocking`` includes the ``nonallocating`` guarantee.
8080

8181
While ``nonblocking`` and ``nonallocating`` are conceptually a superset of ``noexcept``, neither
82-
attribute implicitly specifies ``noexcept``. Further, ``noexcept`` has a specified runtime behavior of
82+
attribute implicitly specifies ``noexcept``. Further, ``noexcept`` has a specified runtime behavior of
8383
aborting if an exception is thrown, while the ``nonallocating`` and ``nonblocking`` attributes are
8484
mainly for compile-time analysis and have no runtime behavior, except in code built
8585
with Clang's :doc:`RealtimeSanitizer`. Nonetheless, Clang emits a
@@ -95,7 +95,7 @@ function, as described in the section "Analysis and warnings", below.
9595
explicitly disable any potential inference of ``nonblocking`` or ``nonallocating`` during
9696
verification. (Inference is described later in this document). ``nonblocking(false)`` and
9797
``nonallocating(false)`` are legal, but superfluous when applied to a function *type*
98-
that is not part of a declarator: ``float (int) [[nonblocking(false)]]`` and
98+
that is not part of a declarator: ``float (int) [[nonblocking(false)]]`` and
9999
``float (int)`` are identical types.
100100

101101
For functions with no explicit performance constraint, the worst is assumed: the function
@@ -153,7 +153,7 @@ are comparable to that for ``noexcept`` in C++17 and later.
153153
void (*fp_nonallocating)() [[clang::nonallocating]];
154154
fp_nonallocating = nullptr;
155155
fp_nonallocating = nonallocating;
156-
fp_nonallocating = nonblocking; // no warning because nonblocking includes nonallocating
156+
fp_nonallocating = nonblocking; // no warning because nonblocking includes nonallocating
157157
fp_nonallocating = unannotated;
158158
// ^ warning: attribute 'nonallocating' should not be added via type conversion
159159
}
@@ -274,7 +274,7 @@ following rules. Such functions:
274274
from the analysis. (The reason for requiring ``noexcept`` in C++ is that a function declared
275275
``noreturn`` could be a wrapper for ``throw``.)
276276

277-
5. May not invoke or access an Objective-C method or property, since ``objc_msgSend()`` calls into
277+
5. May not invoke or access an Objective-C method or property, since ``objc_msgSend()`` calls into
278278
the Objective-C runtime, which may allocate memory or otherwise block.
279279

280280
6. May not access thread-local variables. Typically, thread-local variables are allocated on the

0 commit comments

Comments
 (0)