File tree Expand file tree Collapse file tree 15 files changed +33
-18
lines changed Expand file tree Collapse file tree 15 files changed +33
-18
lines changed Original file line number Diff line number Diff line change @@ -41,3 +41,4 @@ Options
41
41
.. option :: RetryMacros
42
42
43
43
A comma-separated list of the names of retry macros to be checked.
44
+ Default is `TEMP_FAILURE_RETRY `.
Original file line number Diff line number Diff line change @@ -37,4 +37,4 @@ Options
37
37
.. option :: DisallowedSeedTypes
38
38
39
39
A comma-separated list of the type names which are disallowed.
40
- Default values are `` time_t ``, `` std::time_t ` `.
40
+ Default value is ` time_t, std::time_t `.
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ Examples:
32
32
33
33
sleep(1); // implementation may use SIGALRM
34
34
35
+ Options
36
+ -------
37
+
35
38
.. option :: FunctionSet
36
39
37
40
Specifies which functions in libc should be considered thread-safe,
Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ Options
35
35
.. option :: Allocations
36
36
37
37
Semicolon-separated list of fully qualified names of memory allocation functions.
38
- Defaults to `` ::malloc;::calloc ` `.
38
+ Defaults to `::malloc;::calloc `.
39
39
40
40
.. option :: Deallocations
41
41
42
42
Semicolon-separated list of fully qualified names of memory allocation functions.
43
- Defaults to `` ::free ` `.
43
+ Defaults to `::free `.
44
44
45
45
.. option :: Reallocations
46
46
47
47
Semicolon-separated list of fully qualified names of memory allocation functions.
48
- Defaults to `` ::realloc ` `.
48
+ Defaults to `::realloc `.
Original file line number Diff line number Diff line change @@ -95,14 +95,14 @@ Options
95
95
96
96
Semicolon-separated list of fully qualified names of legacy functions that create
97
97
resources but cannot introduce ``gsl::owner<> ``.
98
- Defaults to `` ::malloc;::aligned_alloc;::realloc;::calloc;::fopen;::freopen;::tmpfile ` `.
98
+ Defaults to `::malloc;::aligned_alloc;::realloc;::calloc;::fopen;::freopen;::tmpfile `.
99
99
100
100
101
101
.. option :: LegacyResourceConsumers
102
102
103
103
Semicolon-separated list of fully qualified names of legacy functions expecting
104
104
resource owners as pointer arguments but cannot introduce ``gsl::owner<> ``.
105
- Defaults to `` ::free;::realloc;::freopen;::fclose ` `.
105
+ Defaults to `::free;::realloc;::freopen;::fclose `.
106
106
107
107
108
108
Limitations
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ Options
21
21
22
22
The check can generate fixes after this option has been set to the name of
23
23
the include file that contains ``gsl::at() ``, e.g. `"gsl/gsl.h" `.
24
+ Default is an empty string.
24
25
25
26
.. option :: IncludeStyle
26
27
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ Options
37
37
38
38
If set to `true `, the check will provide fix-its with literal initializers
39
39
\( ``int i = 0; `` \) instead of curly braces \( ``int i{}; `` \) .
40
+ Default is `false `.
40
41
41
42
This rule is part of the `Type safety (Type.6)
42
43
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-memberinit> `_
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ Options
45
45
46
46
A semicolon-separated list of qualified types which should not be allowed to
47
47
persist across suspension points.
48
- Eg: `` my::lockable; a::b;::my::other::lockable; ` `
49
- The default value of this option is `" std::lock_guard;std::scoped_lock" `.
48
+ Eg: `my::lockable;a::b;::my::other::lockable `
49
+ The default value of this option is `std::lock_guard;std::scoped_lock `.
50
50
51
51
.. option :: AllowedAwaitablesList
52
52
@@ -78,6 +78,6 @@ Options
78
78
co_await wait();
79
79
}
80
80
81
- Eg: `` my::safe::awaitable;other::awaitable ` `
82
- The default value of this option is empty string ` "" ` .
81
+ Eg: `my::safe::awaitable;other::awaitable `
82
+ Default is an empty string.
83
83
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ Options
31
31
32
32
A semicolon-separated list of regexes to disable insertion/removal of header
33
33
files that match this regex as a suffix. E.g., `foo/.* ` disables
34
- insertion/removal for all headers under the directory `foo `. By default, no
35
- headers will be ignored.
34
+ insertion/removal for all headers under the directory `foo `. Default is an
35
+ empty string, no headers will be ignored.
36
36
37
37
.. option :: DeduplicateFindings
38
38
Original file line number Diff line number Diff line change @@ -17,10 +17,11 @@ Options
17
17
18
18
.. option :: IgnoreClassesWithAllMemberVariablesBeingPublic
19
19
20
- Allows to completely ignore classes if **all ** the member variables in that
21
- class a declared with a ``public `` access specifier.
20
+ When `true `, allows to completely ignore classes if **all ** the member
21
+ variables in that class declared with a ``public `` access specifier.
22
+ Default is `false `.
22
23
23
24
.. option :: IgnorePublicMemberVariables
24
25
25
- Allows to ignore (not diagnose) **all ** the member variables declared with
26
- a ``public `` access specifier.
26
+ When ` true `, allows to ignore (not diagnose) **all ** the member variables
27
+ declared with a ``public `` access specifier. Default is ` false ` .
Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ Options
18
18
.. option :: IgnoredContainers
19
19
20
20
Semicolon-separated list of containers regexp for which this check won't be
21
- enforced. Default is ` empty ` .
21
+ enforced. Default is an empty string .
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ The check issues warning if a container has ``empty()`` and ``size()`` or
25
25
26
26
`size_type ` can be any kind of integer type.
27
27
28
+ Options
29
+ -------
30
+
28
31
.. option :: ExcludedComparisonTypes
29
32
30
33
A semicolon-separated list of class names for which the check will ignore
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ In the case of multiple redeclarations or function template specializations,
52
52
a warning is issued for every redeclaration or specialization inconsistent with
53
53
the definition or the first declaration seen in a translation unit.
54
54
55
+ Options
56
+ -------
57
+
55
58
.. option :: IgnoreMacros
56
59
57
60
If this option is set to `true ` (default is `true `), the check will not warn
Original file line number Diff line number Diff line change @@ -29,4 +29,4 @@ Options
29
29
.. option :: StrictMode
30
30
31
31
If set to `true `, the check will also flag functions and variables that
32
- already have internal linkage as redundant.
32
+ already have internal linkage as redundant. Default is ` false `.
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ Examples:
14
14
*ptr->get() ==> **ptr
15
15
if (ptr.get() == nullptr) ... => if (ptr == nullptr) ...
16
16
17
+ Options
18
+ -------
17
19
18
20
.. option :: IgnoreMacros
19
21
You can’t perform that action at this time.
0 commit comments