File tree Expand file tree Collapse file tree 13 files changed +16
-16
lines changed Expand file tree Collapse file tree 13 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ abseil-no-internal-dependencies
5
5
6
6
Warns if code using Abseil depends on internal details. If something is in a
7
7
namespace that includes the word "internal", code is not allowed to depend upon
8
- it beaucse it’s an implementation detail. They cannot friend it, include it,
8
+ it because it’s an implementation detail. They cannot friend it, include it,
9
9
you mention it or refer to it in any way. Doing so violates Abseil's
10
10
compatibility guidelines and may result in breakage. See
11
11
https://abseil.io/about/compatibility for more information.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Examples:
25
25
int x;
26
26
absl::Time t;
27
27
28
- // Original - absl::Duration result and first operand is a absl: :Time.
28
+ // Original - absl::Duration result and first operand is an absl: :Time.
29
29
absl::Duration d = absl: :Seconds(absl::ToUnixSeconds(t) - x);
30
30
31
31
// Suggestion - Perform subtraction in the Time domain instead.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ the latter, with ``operator+`` by default. This can cause loss of precision
11
11
through:
12
12
13
13
- Truncation: The following code uses a floating point range and an int
14
- initial value, so trucation will happen at every application of ``operator+ ``
14
+ initial value, so truncation will happen at every application of ``operator+ ``
15
15
and the result will be `0 `, which might not be what the user expected.
16
16
17
17
.. code-block :: c++
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ is an operand of a logical "and" (``&&``) or a logical "or" (``||``) operator:
41
41
42
42
In the first case (logical "and") the suggested fix is to remove the redundant
43
43
condition variable and keep the other side of the ``&& ``. In the second case
44
- (logical "or") the whole ``if `` is removed similarily to the simple case on the
44
+ (logical "or") the whole ``if `` is removed similarly to the simple case on the
45
45
top.
46
46
47
47
The condition of the outer ``if `` statement may also be a logical "and" (``&& ``)
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ and has an alias name ``cert-sig30-c``.
20
20
21
21
.. option :: AsyncSafeFunctionSet
22
22
23
- Selects wich set of functions is considered as asynchronous-safe
23
+ Selects which set of functions is considered as asynchronous-safe
24
24
(and therefore allowed in signal handlers). Value ``minimal `` selects
25
25
a minimal set that is defined in the CERT SIG30-C rule and includes functions
26
26
``abort() ``, ``_Exit() ``, ``quick_exit() `` and ``signal() ``. Value ``POSIX ``
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ arguments. The following cases are covered:
8
8
9
9
**Case 1: Non-standard-layout type **
10
10
11
- Comparing the object representaions of non-standard-layout objects may not
11
+ Comparing the object representations of non-standard-layout objects may not
12
12
properly compare the value representations.
13
13
14
14
**Case 2: Types with no unique object representation **
15
15
16
- Objects with the same value may not have the same object representaion .
16
+ Objects with the same value may not have the same object representation .
17
17
This may be caused by padding or floating-point types.
18
18
19
19
See also:
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ a larger user input.
33
33
Upper limit for the magnitude bits of the loop variable. If it's set the check
34
34
filters out those catches in which the loop variable's type has more magnitude
35
35
bits as the specified upper limit. The default value is 16.
36
- For example, if the user sets this option to 31 (bits), then a 32-bit ``unsigend int ``
36
+ For example, if the user sets this option to 31 (bits), then a 32-bit ``unsigned int ``
37
37
is ignored by the check, however a 32-bit ``int `` is not (A 32-bit ``signed int ``
38
38
has 31 magnitude bits).
39
39
Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ is allowed to propagate out of the function (exception handler is checked for
21
21
types ``std::bad_alloc ``, ``std::exception ``, and catch-all handler).
22
22
The check assumes that any user-defined ``operator new `` is either
23
23
``noexcept `` or may throw an exception of type ``std::bad_alloc `` (or derived
24
- from it). Other exception types or exceptions occuring in the objects's
24
+ from it). Other exception types or exceptions occurring in the objects's
25
25
constructor are not taken into account.
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ Options
11
11
12
12
.. option :: MemSetNames
13
13
14
- Specify extra functions to flag that act similarily to ``memset ``.
14
+ Specify extra functions to flag that act similarly to ``memset ``.
15
15
Specify names in a semicolon delimited list.
16
16
Default is an empty string.
17
17
The check will detect the following functions:
18
18
`memset `, `std::memset `.
19
19
20
20
.. option :: MemCpyNames
21
21
22
- Specify extra functions to flag that act similarily to ``memcpy ``.
22
+ Specify extra functions to flag that act similarly to ``memcpy ``.
23
23
Specify names in a semicolon delimited list.
24
24
Default is an empty string.
25
25
The check will detect the following functions:
@@ -28,7 +28,7 @@ Options
28
28
29
29
.. option :: MemCmpNames
30
30
31
- Specify extra functions to flag that act similarily to ``memcmp ``.
31
+ Specify extra functions to flag that act similarly to ``memcmp ``.
32
32
Specify names in a semicolon delimited list.
33
33
Default is an empty string.
34
34
The check will detect the following functions:
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Options
44
44
.. option :: WarnWithinTemplateInstantiation
45
45
46
46
When `true `, the check will warn on narrowing conversions within template
47
- instantations . `false ` by default.
47
+ instantiations . `false ` by default.
48
48
49
49
.. option :: WarnOnEquivalentBitWidth
50
50
Original file line number Diff line number Diff line change @@ -49,5 +49,5 @@ becomes
49
49
50
50
For better consistency of user code, the check renames both virtual and
51
51
non-virtual member functions with matching names in derived types. The check
52
- tries to provide a only warning when a fix cannot be made safely, as is the case
52
+ tries to provide only a warning when a fix cannot be made safely, as is the case
53
53
with some template and macro uses.
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ hicpp-no-assembler
5
5
6
6
Check for assembler statements. No fix is offered.
7
7
8
- Inline assembler is forbidden by the `High Intergrity C++ Coding Standard
8
+ Inline assembler is forbidden by the `High Integrity C++ Coding Standard
9
9
<http://www.codingstandard.com/section/7-5-the-asm-declaration/> `_
10
10
as it restricts the portability of code.
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Options
29
29
30
30
When `true `, the check will ignore unnecessary base class initializations
31
31
within copy constructors, since some compilers issue warnings/errors when
32
- base classes are not explicitly intialized in copy constructors. For example,
32
+ base classes are not explicitly initialized in copy constructors. For example,
33
33
``gcc `` with ``-Wextra `` or ``-Werror=extra `` issues warning or error
34
34
``base class 'Bar' should be explicitly initialized in the copy constructor ``
35
35
if ``Bar() `` were removed in the following example:
You can’t perform that action at this time.
0 commit comments