Skip to content

Commit 0c66025

Browse files
author
Shao-Ce SUN
committed
[NFC] Trim trailing whitespace in *.rst
1 parent 846f335 commit 0c66025

File tree

148 files changed

+1141
-1168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+1141
-1168
lines changed

clang-tools-extra/docs/clang-tidy/checks/abseil-redundant-strcat-calls.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
abseil-redundant-strcat-calls
44
=============================
55

6-
Suggests removal of unnecessary calls to ``absl::StrCat`` when the result is
6+
Suggests removal of unnecessary calls to ``absl::StrCat`` when the result is
77
being passed to another call to ``absl::StrCat`` or ``absl::StrAppend``.
88

99
The extra calls cause unnecessary temporary strings to be constructed. Removing
@@ -21,6 +21,6 @@ Examples:
2121

2222
absl::StrAppend(&s, absl::StrCat("E", "F", "G"));
2323
//before
24-
24+
2525
absl::StrAppend(&s, "E", "F", "G");
2626
//after

clang-tools-extra/docs/clang-tidy/checks/abseil-str-cat-append.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
abseil-str-cat-append
44
=====================
55

6-
Flags uses of ``absl::StrCat()`` to append to a ``std::string``. Suggests
6+
Flags uses of ``absl::StrCat()`` to append to a ``std::string``. Suggests
77
``absl::StrAppend()`` should be used instead.
88

99
The extra calls cause unnecessary temporary strings to be constructed. Removing

clang-tools-extra/docs/clang-tidy/checks/bugprone-bad-signal-to-kill-thread.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
bugprone-bad-signal-to-kill-thread
44
==================================
55

6-
Finds ``pthread_kill`` function calls when a thread is terminated by
7-
raising ``SIGTERM`` signal and the signal kills the entire process, not
6+
Finds ``pthread_kill`` function calls when a thread is terminated by
7+
raising ``SIGTERM`` signal and the signal kills the entire process, not
88
just the individual thread. Use any signal except ``SIGTERM``.
99

1010
.. code-block: c++

clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,5 @@ Options
128128
.. option:: WantToUseSafeFunctions
129129

130130
The value `true` specifies that the target environment is considered to
131-
implement '_s' suffixed memory and string handler functions which are safer
131+
implement '_s' suffixed memory and string handler functions which are safer
132132
than older versions (e.g. 'memcpy_s()'). The default value is `true`.

clang-tools-extra/docs/clang-tidy/checks/bugprone-reserved-identifier.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,53 @@ bugprone-reserved-identifier
55

66
`cert-dcl37-c` and `cert-dcl51-cpp` redirect here as an alias for this check.
77

8-
Checks for usages of identifiers reserved for use by the implementation.
8+
Checks for usages of identifiers reserved for use by the implementation.
99

1010
The C and C++ standards both reserve the following names for such use:
1111

1212
- identifiers that begin with an underscore followed by an uppercase letter;
1313
- identifiers in the global namespace that begin with an underscore.
1414

1515
The C standard additionally reserves names beginning with a double underscore,
16-
while the C++ standard strengthens this to reserve names with a double
16+
while the C++ standard strengthens this to reserve names with a double
1717
underscore occurring anywhere.
1818

1919
Violating the naming rules above results in undefined behavior.
2020

2121
.. code-block:: c++
2222

23-
namespace NS {
23+
namespace NS {
2424
void __f(); // name is not allowed in user code
2525
using _Int = int; // same with this
2626
#define cool__macro // also this
2727
}
2828
int _g(); // disallowed in global namespace only
2929

30-
The check can also be inverted, i.e. it can be configured to flag any
31-
identifier that is _not_ a reserved identifier. This mode is for use by e.g.
32-
standard library implementors, to ensure they don't infringe on the user
30+
The check can also be inverted, i.e. it can be configured to flag any
31+
identifier that is _not_ a reserved identifier. This mode is for use by e.g.
32+
standard library implementors, to ensure they don't infringe on the user
3333
namespace.
3434

35-
This check does not (yet) check for other reserved names, e.g. macro names
36-
identical to language keywords, and names specifically reserved by language
35+
This check does not (yet) check for other reserved names, e.g. macro names
36+
identical to language keywords, and names specifically reserved by language
3737
standards, e.g. C++ 'zombie names' and C future library directions.
3838

39-
This check corresponds to CERT C Coding Standard rule `DCL37-C. Do not declare
39+
This check corresponds to CERT C Coding Standard rule `DCL37-C. Do not declare
4040
or define a reserved identifier
4141
<https://wiki.sei.cmu.edu/confluence/display/c/DCL37-C.+Do+not+declare+or+define+a+reserved+identifier>`_
4242
as well as its C++ counterpart, `DCL51-CPP. Do not declare or define a reserved
43-
identifier
43+
identifier
4444
<https://wiki.sei.cmu.edu/confluence/display/cplusplus/DCL51-CPP.+Do+not+declare+or+define+a+reserved+identifier>`_.
4545

4646
Options
4747
-------
4848

4949
.. option:: Invert
5050

51-
If `true`, inverts the check, i.e. flags names that are not reserved.
51+
If `true`, inverts the check, i.e. flags names that are not reserved.
5252
Default is `false`.
5353

5454
.. option:: AllowedIdentifiers
5555

56-
Semicolon-separated list of names that the check ignores. Default is an
56+
Semicolon-separated list of names that the check ignores. Default is an
5757
empty list.

clang-tools-extra/docs/clang-tidy/checks/bugprone-signal-handler.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@ and has an alias name ``cert-sig30-c``.
3232
assumable that the reason is that the list was not updated for C11.
3333
The checker includes ``quick_exit`` in the set of safe functions.
3434
Functions registered as exit handlers are not checked.
35-
36-
Default is ``POSIX``.
3735

36+
Default is ``POSIX``.

clang-tools-extra/docs/clang-tidy/checks/bugprone-spuriously-wake-up-functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
bugprone-spuriously-wake-up-functions
44
=====================================
55

6-
Finds ``cnd_wait``, ``cnd_timedwait``, ``wait``, ``wait_for``, or
6+
Finds ``cnd_wait``, ``cnd_timedwait``, ``wait``, ``wait_for``, or
77
``wait_until`` function calls when the function is not invoked from a loop
8-
that checks whether a condition predicate holds or the function has a
8+
that checks whether a condition predicate holds or the function has a
99
condition parameter.
1010

1111
.. code-block: c++

clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-enum-usage.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ bugprone-suspicious-enum-usage
55

66
The checker detects various cases when an enum is probably misused (as a bitmask
77
).
8-
8+
99
1. When "ADD" or "bitwise OR" is used between two enum which come from different
1010
types and these types value ranges are not disjoint.
1111

12-
The following cases will be investigated only using :option:`StrictMode`. We
12+
The following cases will be investigated only using :option:`StrictMode`. We
1313
regard the enum as a (suspicious)
1414
bitmask if the three conditions below are true at the same time:
1515

@@ -36,13 +36,13 @@ Examples:
3636
enum { A, B, C };
3737
enum { D, E, F = 5 };
3838
enum { G = 10, H = 11, I = 12 };
39-
39+
4040
unsigned flag;
4141
flag =
4242
A |
4343
H; // OK, disjoint value intervals in the enum types ->probably good use.
4444
flag = B | F; // Warning, have common values so they are probably misused.
45-
45+
4646
// Case 2:
4747
enum Bitmask {
4848
A = 0,
@@ -53,7 +53,7 @@ Examples:
5353
F = 16,
5454
G = 31 // OK, real bitmask.
5555
};
56-
56+
5757
enum Almostbitmask {
5858
AA = 0,
5959
BB = 1,
@@ -63,7 +63,7 @@ Examples:
6363
FF = 16,
6464
GG // Problem, forgot to initialize.
6565
};
66-
66+
6767
unsigned flag = 0;
6868
flag |= E; // OK.
6969
flag |=

clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-memory-comparison.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ properly compare the value representations.
1616
Objects with the same value may not have the same object representation.
1717
This may be caused by padding or floating-point types.
1818

19-
See also:
19+
See also:
2020
`EXP42-C. Do not compare padding data
2121
<https://wiki.sei.cmu.edu/confluence/display/c/EXP42-C.+Do+not+compare+padding+data>`_
2222
and
2323
`FLP37-C. Do not use object representations to compare floating-point values
2424
<https://wiki.sei.cmu.edu/confluence/display/c/FLP37-C.+Do+not+use+object+representations+to+compare+floating-point+values>`_
2525

26-
This check is also related to and partially overlaps the CERT C++ Coding Standard rules
26+
This check is also related to and partially overlaps the CERT C++ Coding Standard rules
2727
`OOP57-CPP. Prefer special member functions and overloaded operators to C Standard Library functions
2828
<https://wiki.sei.cmu.edu/confluence/display/cplusplus/OOP57-CPP.+Prefer+special+member+functions+and+overloaded+operators+to+C+Standard+Library+functions>`_
2929
and

clang-tools-extra/docs/clang-tidy/checks/cert-dcl37-c.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ cert-dcl37-c
66
============
77

88
The cert-dcl37-c check is an alias, please see
9-
`bugprone-reserved-identifier <bugprone-reserved-identifier.html>`_ for more
9+
`bugprone-reserved-identifier <bugprone-reserved-identifier.html>`_ for more
1010
information.

0 commit comments

Comments
 (0)