Skip to content

Commit a2c8ce3

Browse files
author
Matthias Güdemann
committed
Doxygen update, clarification
1 parent 2d950cf commit a2c8ce3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

jbmc/src/java_bytecode/select_pointer_type.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,13 @@ pointer_typet select_pointer_typet::specialize_generics(
136136
return pointer_type;
137137
}
138138

139-
/// Return the first concrete type instantiation if any such exists.
139+
/// Return the first concrete type instantiation if any such exists. This method
140+
/// is only to be called when the `specialize_generics` cannot find an
141+
/// instantiation due to a loop in its recursion.
140142
/// \param parameter_name The name of the generic parameter type we want to have
141143
/// instantiated
142144
/// \param generic_specialization_map Map of type names to specialization stack
143-
/// \param depth start depth for instantiation search
144-
/// \return the first instantiated type for the generic type or nothing if no
145+
/// \return The first instantiated type for the generic type or nothing if no
145146
/// such instantiation exists.
146147
optionalt<pointer_typet> select_pointer_typet::get_instantiated_type(
147148
const irep_idt &parameter_name,
@@ -179,8 +180,8 @@ optionalt<pointer_typet> select_pointer_typet::get_instantiated_type(
179180
/// See get_instantiated_type, the additional parameters just track the
180181
/// recursion to prevent, visiting the same depth again and specify which stack
181182
/// depth is analyzed.
182-
/// \param visited tracks the visited parameter names
183-
/// \param depth stack depth to analyze
183+
/// \param visited Tracks the visited parameter names
184+
/// \param depth Stack depth to analyze
184185
optionalt<pointer_typet> select_pointer_typet::get_instantiated_type(
185186
const irep_idt &parameter_name,
186187
const generic_parameter_specialization_mapt

0 commit comments

Comments
 (0)