Skip to content

Commit aecbf97

Browse files
authored
Merge pull request #4289 from owen-jones-diffblue/doc/do_not_use_entry_unless_referring_to_entryt
Replace "entry" with "element" in function docs
2 parents ba421e0 + e5991c7 commit aecbf97

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/pointer-analysis/value_set.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class value_sett
139139
~object_map_dt()=default;
140140
};
141141

142-
/// Converts an `object_map_dt` entry `object_number -> offset` into an
142+
/// Converts an `object_map_dt` element `object_number -> offset` into an
143143
/// `object_descriptor_exprt` with
144144
/// `.object() == object_numbering.at(object_number)` and
145145
/// `.offset() == offset`.
@@ -159,29 +159,29 @@ class value_sett
159159
/// be shared between the two `value_sett` instances.
160160
typedef reference_counting<object_map_dt> object_mapt;
161161

162-
/// Sets an entry in object map `dest` to match an existing entry `it`
163-
/// from a different map. Any existing entry for the same `exprt` is
162+
/// Sets an element in object map `dest` to match an existing element `it`
163+
/// from a different map. Any existing element for the same `exprt` is
164164
/// overwritten.
165165
/// \param dest: object map to update.
166-
/// \param it: iterator pointing to new entry
166+
/// \param it: iterator pointing to new element
167167
void set(object_mapt &dest, const object_map_dt::value_type &it) const
168168
{
169169
dest.write()[it.first]=it.second;
170170
}
171171

172-
/// Merges an existing entry into an object map. If the destination map
173-
/// has an existing entry for the same expression with a different offset
172+
/// Merges an existing element into an object map. If the destination map
173+
/// has an existing element for the same expression with a different offset
174174
/// its offset is marked unknown (so e.g. `x -> 0` and `x -> 1` merge into
175175
/// `x -> ?`).
176176
/// \param dest: object map to update.
177-
/// \param it: iterator pointing to new entry
177+
/// \param it: iterator pointing to new element
178178
bool insert(object_mapt &dest, const object_map_dt::value_type &it) const
179179
{
180180
return insert(dest, it.first, it.second);
181181
}
182182

183183
/// Adds an expression to an object map, with unknown offset. If the
184-
/// destination map has an existing entry for the same expression
184+
/// destination map has an existing element for the same expression
185185
/// its offset is marked unknown.
186186
/// \param dest: object map to update
187187
/// \param src: expression to add
@@ -191,7 +191,7 @@ class value_sett
191191
}
192192

193193
/// Adds an expression to an object map, with known offset. If the
194-
/// destination map has an existing entry for the same expression
194+
/// destination map has an existing element for the same expression
195195
/// with a differing offset its offset is marked unknown.
196196
/// \param dest: object map to update
197197
/// \param src: expression to add
@@ -205,7 +205,7 @@ class value_sett
205205
}
206206

207207
/// Adds a numbered expression and offset to an object map. If the
208-
/// destination map has an existing entry for the same expression
208+
/// destination map has an existing element for the same expression
209209
/// with a differing offset its offset is marked unknown.
210210
/// \param dest: object map to update
211211
/// \param n: object number to add; must be mapped to the corresponding
@@ -217,7 +217,7 @@ class value_sett
217217
const offsett &offset) const;
218218

219219
/// Adds an expression and offset to an object map. If the
220-
/// destination map has an existing entry for the same expression
220+
/// destination map has an existing element for the same expression
221221
/// with a differing offset its offset is marked unknown.
222222
/// \param dest: object map to update
223223
/// \param expr: expression to add
@@ -230,7 +230,7 @@ class value_sett
230230
/// Represents a row of a `value_sett`. For example, this might represent
231231
/// `dynamic_object1.field1 -> { <dynamic_object2, 0> }`, with
232232
/// `identifier == dynamic_object1`, `suffix` == `.field1` and
233-
/// a single-entry `object_map` representing `{ <dynamic_object2, 0> }`.
233+
/// a single-element `object_map` representing `{ <dynamic_object2, 0> }`.
234234
struct entryt
235235
{
236236
object_mapt object_map;

0 commit comments

Comments
 (0)