File tree Expand file tree Collapse file tree 15 files changed +38
-7
lines changed Expand file tree Collapse file tree 15 files changed +38
-7
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Options
15
15
.. option :: AssertMacros
16
16
17
17
A comma-separated list of the names of assert macros to be checked.
18
+ Default is `assert,NSAssert,NSCAssert `.
18
19
19
20
.. option :: CheckFunctionCalls
20
21
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ Possible fixes:
32
32
object types.
33
33
- passing ``this `` pointer as parameter
34
34
35
+ Options
36
+ -------
37
+
35
38
.. option :: FunctionWrapperTypes
36
39
37
40
A semicolon-separated list of names of types. Used to specify function
Original file line number Diff line number Diff line change @@ -104,13 +104,16 @@ so both arguments will have the same type.
104
104
return false;
105
105
}
106
106
107
+ Options
108
+ -------
109
+
107
110
.. option :: CharTypdefsToIgnore
108
111
109
112
A semicolon-separated list of typedef names. In this list, we can list
110
113
typedefs for ``char `` or ``signed char ``, which will be ignored by the
111
114
check. This is useful when a typedef introduces an integer alias like
112
115
``sal_Int8 `` or ``int8_t ``. In this case, human misinterpretation is not
113
- an issue.
116
+ an issue. Default is an empty string.
114
117
115
118
.. option :: DiagnoseSignedUnsignedCharComparisons
116
119
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ Examples:
71
71
72
72
Options
73
73
-------
74
+
74
75
.. option :: StrictMode
75
76
76
77
Default value: 0.
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ lead to a compilation error due to the explicit nature of the ``std::string``
43
43
constructor. Consequently, developers might opt for ``sv.data() `` to resolve the
44
44
compilation error, albeit introducing potential hazards as discussed.
45
45
46
+ Options
47
+ -------
48
+
46
49
.. option :: StringViewTypes
47
50
48
51
Option allows users to specify custom string view-like types for analysis. It
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ It's recommended to enable the compiler warning
32
32
`-Wtautological-constant-out-of-range-compare ` as well, since check does not
33
33
inspect compile-time constant loop boundaries to avoid overlaps with the warning.
34
34
35
+ Options
36
+ -------
37
+
35
38
.. option :: MagnitudeBitsUpperLimit
36
39
37
40
Upper limit for the magnitude bits of the loop variable. If it's set the check
Original file line number Diff line number Diff line change @@ -118,6 +118,9 @@ temporary object into ``this`` (needs a move assignment operator):
118
118
}
119
119
};
120
120
121
+ Options
122
+ -------
123
+
121
124
.. option :: WarnOnlyIfThisHasSuspiciousField
122
125
123
126
When `true `, the check will warn only if the container class of the copy
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ Or cast to char to explicitly indicate that output should be a character.
39
39
40
40
std::cout << static_cast<char>(v);
41
41
42
+ Options
43
+ -------
44
+
42
45
.. option :: CastTypeName
43
46
44
47
When `CastTypeName ` is specified, the fix-it will use `CastTypeName ` as the
Original file line number Diff line number Diff line change @@ -50,8 +50,9 @@ Options
50
50
of every placeholder parameter list. Without this, it is possible for a fix-it
51
51
to perform an incorrect transformation in the case where the result of the ``bind ``
52
52
is used in the context of a type erased functor such as ``std::function `` which
53
- allows mismatched arguments. For example:
53
+ allows mismatched arguments. Default is is ` false `.
54
54
55
+ For example:
55
56
56
57
.. code-block :: c++
57
58
Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ Similarly, the ``main()`` function is ignored. Its second and third parameters
62
62
can be either ``char* argv[] `` or ``char** argv ``, but cannot be
63
63
``std::array<> ``.
64
64
65
+ Options
66
+ -------
67
+
65
68
.. option :: AllowStringArrays
66
69
67
70
When set to `true ` (default is `false `), variables of character array type
You can’t perform that action at this time.
0 commit comments