@@ -80,9 +80,10 @@ This limitation affects the capability to add ``const`` to methods which is not
80
80
Options
81
81
-------
82
82
83
- .. option :: AnalyzeValues (default = true)
83
+ .. option :: AnalyzeValues
84
84
85
- Enable or disable the analysis of ordinary value variables, like ``int i = 42; ``
85
+ Enable or disable the analysis of ordinary value variables, like
86
+ ``int i = 42; ``. Default is `true `.
86
87
87
88
.. code-block :: c++
88
89
@@ -96,9 +97,10 @@ Options
96
97
// No warning
97
98
int const a[] = {42, 42, 42};
98
99
99
- .. option :: AnalyzeReferences (default = true)
100
+ .. option :: AnalyzeReferences
100
101
101
- Enable or disable the analysis of reference variables, like ``int &ref = i; ``
102
+ Enable or disable the analysis of reference variables, like
103
+ ``int &ref = i; ``. Default is `true `.
102
104
103
105
.. code-block :: c++
104
106
@@ -108,11 +110,11 @@ Options
108
110
// No warning
109
111
int const& ref = i;
110
112
111
- .. option :: WarnPointersAsValues (default = false)
113
+ .. option :: WarnPointersAsValues
112
114
113
115
This option enables the suggestion for ``const `` of the pointer itself.
114
116
Pointer values have two possibilities to be ``const ``, the pointer
115
- and the value pointing to.
117
+ and the value pointing to. Default is ` false `.
116
118
117
119
.. code-block :: c++
118
120
@@ -123,9 +125,10 @@ Options
123
125
// No warning
124
126
const int *const pointer_variable = &value;
125
127
126
- .. option :: TransformValues (default = true)
128
+ .. option :: TransformValues
127
129
128
- Provides fixit-hints for value types that automatically add ``const `` if its a single declaration.
130
+ Provides fixit-hints for value types that automatically add ``const `` if
131
+ its a single declaration. Default is `true `.
129
132
130
133
.. code-block :: c++
131
134
@@ -143,10 +146,10 @@ Options
143
146
int result = value * 3;
144
147
result -= 10;
145
148
146
- .. option :: TransformReferences (default = true)
149
+ .. option :: TransformReferences
147
150
148
- Provides fixit-hints for reference types that automatically add ``const `` if its a single
149
- declaration.
151
+ Provides fixit-hints for reference types that automatically add ``const `` if
152
+ its a single declaration. Default is ` true ` .
150
153
151
154
.. code-block :: c++
152
155
@@ -163,10 +166,10 @@ Options
163
166
int result = ref_value * 3;
164
167
result -= 10;
165
168
166
- .. option :: TransformPointersAsValues (default = false)
169
+ .. option :: TransformPointersAsValues
167
170
168
- Provides fixit-hints for pointers if their pointee is not changed. This does not analyze if the
169
- value-pointed-to is unchanged!
171
+ Provides fixit-hints for pointers if their pointee is not changed. This does
172
+ not analyze if the value-pointed-to is unchanged! Default is ` false `.
170
173
171
174
Requires 'WarnPointersAsValues' to be 'true'.
172
175
0 commit comments