@@ -81,19 +81,19 @@ Original:
81
81
v.push_back(2);
82
82
v.push_back(3);
83
83
84
- // safe transform
84
+ // safe conversion
85
85
for (int i = 0; i < N; ++i)
86
86
cout << arr[i];
87
87
88
- // reasonable transform
88
+ // reasonable conversion
89
89
for (vector<int>::iterator it = v.begin(); it != v.end(); ++it)
90
90
cout << *it; *
91
91
92
- // reasonable transform
92
+ // reasonable conversion
93
93
for (int i = 0; i < v.size(); ++i)
94
94
cout << v[i];
95
95
96
- After transformation with confidence level set to ``reasonable `` (default):
96
+ After applying the check with minimum confidence level set to ``reasonable `` (default):
97
97
98
98
.. code-block :: c++
99
99
@@ -104,15 +104,15 @@ After transformation with confidence level set to ``reasonable`` (default):
104
104
v.push_back(2);
105
105
v.push_back(3);
106
106
107
- // safe transform
107
+ // safe conversion
108
108
for (auto & elem : arr)
109
109
cout << elem;
110
110
111
- // reasonable transform
111
+ // reasonable conversion
112
112
for (auto & elem : v)
113
113
cout << elem;
114
114
115
- // reasonable transform
115
+ // reasonable conversion
116
116
for (auto & elem : v)
117
117
cout << elem;
118
118
@@ -121,7 +121,7 @@ Limitations
121
121
122
122
There are certain situations where the tool may erroneously perform
123
123
transformations that remove information and change semantics. Users of the tool
124
- should be aware of the behaviour and limitations of the transform outlined by
124
+ should be aware of the behaviour and limitations of the check outlined by
125
125
the cases below.
126
126
127
127
Comments inside loop headers
@@ -223,15 +223,15 @@ performed.
223
223
Pointers and references to containers
224
224
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
225
225
226
- While most of the transform 's risk analysis is dedicated to determining whether
226
+ While most of the check 's risk analysis is dedicated to determining whether
227
227
the iterator or container was modified within the loop, it is possible to
228
228
circumvent the analysis by accessing and modifying the container through a
229
229
pointer or reference.
230
230
231
231
If the container were directly used instead of using the pointer or reference
232
232
the following transformation would have only been applied at the ``risky ``
233
233
level since calling a member function of the container is considered `risky `.
234
- The transform cannot identify expressions associated with the container that are
234
+ The check cannot identify expressions associated with the container that are
235
235
different than the one used in the loop header, therefore the transformation
236
236
below ends up being performed at the ``safe `` level.
237
237
0 commit comments