Skip to content

Commit b7c430d

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2797 from owen-jones-diffblue/doc/fix-doxygen-errors
fix some doxygen errors
2 parents 61c44d2 + e4224a1 commit b7c430d

File tree

8 files changed

+61
-57
lines changed

8 files changed

+61
-57
lines changed

jbmc/unit/java-testing-utils/require_type.cpp

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ code_typet require_type::require_code(const typet &type)
6363

6464
/// Verify a given type is an code_typet, and that the code it represents
6565
/// accepts a given number of parameters
66-
/// \param type The type to check
67-
/// \param num_params check the the given code_typet expects this
66+
/// \param type: The type to check
67+
/// \param num_params: check the the given code_typet expects this
6868
/// number of parameters
6969
/// \return The type cast to a code_typet
7070
code_typet
@@ -86,8 +86,8 @@ java_method_typet require_type::require_java_method(const typet &type)
8686

8787
/// Verify a given type is an java_method_typet, and that the code it represents
8888
/// accepts a given number of parameters
89-
/// \param type The type to check
90-
/// \param num_params check the the given java_method_typet expects this
89+
/// \param type: The type to check
90+
/// \param num_params: check the the given java_method_typet expects this
9191
/// number of parameters
9292
/// \return The type cast to a java_method_typet
9393
java_method_typet
@@ -101,7 +101,7 @@ require_type::require_java_method(const typet &type, const size_t num_params)
101101
/// Verify that a function has a parameter of a specific name.
102102
/// \param function_type: The type of the function
103103
/// \param param_name: The name of the parameter
104-
/// \return: A reference to the parameter structure corresponding to this
104+
/// \return A reference to the parameter structure corresponding to this
105105
/// parameter name.
106106
code_typet::parametert require_type::require_parameter(
107107
const code_typet &function_type,
@@ -120,8 +120,8 @@ code_typet::parametert require_type::require_parameter(
120120

121121
/// Helper function for testing that java generic type arguments match
122122
/// a given expectation.
123-
/// \param type_argument The generic type argument to test
124-
/// \param expected The expected value of the argument
123+
/// \param type_argument: The generic type argument to test
124+
/// \param expected: The expected value of the argument
125125
/// \return true if the generic type argument meets the expectations
126126
bool require_java_generic_type_argument_expectation(
127127
const reference_typet &type_argument,
@@ -150,7 +150,7 @@ bool require_java_generic_type_argument_expectation(
150150
}
151151

152152
/// Verify a given type is a java_generic_type
153-
/// \param type The type to check
153+
/// \param type: The type to check
154154
/// \return The type, cast to a java_generic_typet
155155
java_generic_typet require_type::require_java_generic_type(const typet &type)
156156
{
@@ -166,8 +166,8 @@ java_generic_typet require_type::require_java_generic_type(const typet &type)
166166
/// {{require_type::type_argument_kindt::Inst, "java::java.lang.Integer"},
167167
/// {require_type::type_argument_kindt::Var, "T"}})
168168
///
169-
/// \param type The type to check
170-
/// \param type_expectations A set of type argument kinds and identifiers
169+
/// \param type: The type to check
170+
/// \param type_expectations: A set of type argument kinds and identifiers
171171
/// which should be expected as the type arguments of the given generic type.
172172
/// \return The given type, cast to a java_generic_typet
173173
java_generic_typet require_type::require_java_generic_type(
@@ -191,7 +191,7 @@ java_generic_typet require_type::require_java_generic_type(
191191
}
192192

193193
/// Verify a given type is a java_generic_parameter, e.g., `T`
194-
/// \param type The type to check
194+
/// \param type: The type to check
195195
/// \return The type, cast to a java_generic_parametert
196196
java_generic_parametert
197197
require_type::require_java_generic_parameter(const typet &type)
@@ -203,8 +203,8 @@ require_type::require_java_generic_parameter(const typet &type)
203203
/// Verify a given type is a java_generic_parametert with the given name.
204204
/// Expected usage is something like this:
205205
/// require_java_generic_parameter(parameter, "java::Generic::T")
206-
/// \param type The type to check
207-
/// \param parameter String with the parameter name.
206+
/// \param type: The type to check
207+
/// \param parameter: String with the parameter name.
208208
/// \return The given type, cast to a java_generic_parametert
209209
java_generic_parametert require_type::require_java_generic_parameter(
210210
const typet &type,
@@ -221,8 +221,8 @@ java_generic_parametert require_type::require_java_generic_parameter(
221221
}
222222

223223
/// Test a type to ensure it is not a java generics type.
224-
/// \param type The type to test
225-
/// \param expect_subtype Optionally, also test that the subtype of the given
224+
/// \param type: The type to test
225+
/// \param expect_subtype: Optionally, also test that the subtype of the given
226226
/// type matches this parameter
227227
/// \return The value passed in the first argument
228228
const typet &require_type::require_java_non_generic_type(
@@ -237,7 +237,7 @@ const typet &require_type::require_java_non_generic_type(
237237
}
238238

239239
/// Checks that the given type is a complete class.
240-
/// \param class_type type of the class
240+
/// \param class_type: type of the class
241241
/// \return class_type of the class
242242
class_typet require_type::require_complete_class(const typet &class_type)
243243
{
@@ -251,7 +251,7 @@ class_typet require_type::require_complete_class(const typet &class_type)
251251
}
252252

253253
/// Checks that the given type is an incomplete class.
254-
/// \param class_type type of the class
254+
/// \param class_type: type of the class
255255
/// \return class_type of the class
256256
class_typet require_type::require_incomplete_class(const typet &class_type)
257257
{
@@ -266,7 +266,7 @@ class_typet require_type::require_incomplete_class(const typet &class_type)
266266

267267
/// Verify that a class is a valid java generic class.
268268
/// \param class_type: the class
269-
/// \return: A reference to the java generic class type.
269+
/// \return A reference to the java generic class type.
270270
java_generic_class_typet
271271
require_type::require_java_generic_class(const typet &class_type)
272272
{
@@ -287,7 +287,7 @@ require_type::require_java_generic_class(const typet &class_type)
287287
/// specified list of variables.
288288
/// \param class_type: the class
289289
/// \param type_variables: vector of type variables
290-
/// \return: A reference to the java generic class type.
290+
/// \return A reference to the java generic class type.
291291
java_generic_class_typet require_type::require_java_generic_class(
292292
const typet &class_type,
293293
const std::initializer_list<irep_idt> &type_variables)
@@ -315,7 +315,7 @@ java_generic_class_typet require_type::require_java_generic_class(
315315

316316
/// Verify that a class is a complete, valid java generic class.
317317
/// \param class_type: the class
318-
/// \return: A reference to the java generic class type.
318+
/// \return A reference to the java generic class type.
319319
java_generic_class_typet
320320
require_type::require_complete_java_generic_class(const typet &class_type)
321321
{
@@ -327,7 +327,7 @@ require_type::require_complete_java_generic_class(const typet &class_type)
327327
/// specified list of variables.
328328
/// \param class_type: the class
329329
/// \param type_variables: vector of type variables
330-
/// \return: A reference to the java generic class type.
330+
/// \return A reference to the java generic class type.
331331
java_generic_class_typet require_type::require_complete_java_generic_class(
332332
const typet &class_type,
333333
const std::initializer_list<irep_idt> &type_variables)
@@ -338,7 +338,7 @@ java_generic_class_typet require_type::require_complete_java_generic_class(
338338

339339
/// Verify that a class is a valid java implicitly generic class.
340340
/// \param class_type: the class
341-
/// \return: A reference to the java generic class type.
341+
/// \return A reference to the java generic class type.
342342
java_implicitly_generic_class_typet
343343
require_type::require_java_implicitly_generic_class(const typet &class_type)
344344
{
@@ -359,8 +359,8 @@ require_type::require_java_implicitly_generic_class(const typet &class_type)
359359
/// Verify that a class is a valid java generic class with the
360360
/// specified list of variables.
361361
/// \param class_type: the class
362-
/// \param type_variables: vector of type variables
363-
/// \return: A reference to the java generic class type.
362+
/// \param implicit_type_variables: vector of type variables
363+
/// \return A reference to the java generic class type.
364364
java_implicitly_generic_class_typet
365365
require_type::require_java_implicitly_generic_class(
366366
const typet &class_type,
@@ -391,7 +391,7 @@ require_type::require_java_implicitly_generic_class(
391391

392392
/// Verify that a class is a complete, valid java implicitly generic class.
393393
/// \param class_type: the class
394-
/// \return: A reference to the java generic class type.
394+
/// \return A reference to the java generic class type.
395395
java_implicitly_generic_class_typet
396396
require_type::require_complete_java_implicitly_generic_class(
397397
const typet &class_type)
@@ -403,8 +403,8 @@ require_type::require_complete_java_implicitly_generic_class(
403403
/// Verify that a class is a complete, valid java generic class with the
404404
/// specified list of variables.
405405
/// \param class_type: the class
406-
/// \param type_variables: vector of type variables
407-
/// \return: A reference to the java generic class type.
406+
/// \param implicit_type_variables: vector of type variables
407+
/// \return A reference to the java generic class type.
408408
java_implicitly_generic_class_typet
409409
require_type::require_complete_java_implicitly_generic_class(
410410
const typet &class_type,
@@ -417,7 +417,7 @@ require_type::require_complete_java_implicitly_generic_class(
417417

418418
/// Verify that a class is a valid nongeneric java class
419419
/// \param class_type: the class
420-
/// \return: A reference to the java generic class type.
420+
/// \return A reference to the java generic class type.
421421
java_class_typet
422422
require_type::require_java_non_generic_class(const typet &class_type)
423423
{
@@ -435,7 +435,7 @@ require_type::require_java_non_generic_class(const typet &class_type)
435435

436436
/// Verify that a class is a complete, valid nongeneric java class
437437
/// \param class_type: the class
438-
/// \return: A reference to the java generic class type.
438+
/// \return A reference to the java generic class type.
439439
java_class_typet
440440
require_type::require_complete_java_non_generic_class(const typet &class_type)
441441
{
@@ -460,8 +460,8 @@ require_type::require_symbol(const typet &type, const irep_idt &identifier)
460460
}
461461

462462
/// Verify a given type is a java generic symbol type
463-
/// \param type The type to check
464-
/// \param identifier The identifier to match
463+
/// \param type: The type to check
464+
/// \param identifier: The identifier to match
465465
/// \return The type, cast to a java_generic_symbol_typet
466466
java_generic_symbol_typet require_type::require_java_generic_symbol_type(
467467
const typet &type,
@@ -480,9 +480,9 @@ java_generic_symbol_typet require_type::require_java_generic_symbol_type(
480480
/// {{require_type::type_argument_kindt::Inst, "java::java.lang.Integer"},
481481
/// {require_type::type_argument_kindt::Var, "T"}})
482482
///
483-
/// \param type The type to check
484-
/// \param identifier The identifier to match
485-
/// \param type_expectations A set of type argument kinds and identifiers
483+
/// \param type: The type to check
484+
/// \param identifier: The identifier to match
485+
/// \param type_expectations: A set of type argument kinds and identifiers
486486
/// which should be expected as the type arguments of the given generic type
487487
/// \return The given type, cast to a java_generic_symbol_typet
488488
java_generic_symbol_typet require_type::require_java_generic_symbol_type(
@@ -508,8 +508,8 @@ java_generic_symbol_typet require_type::require_java_generic_symbol_type(
508508

509509
/// Verify that the lambda method handles of a class match the given
510510
/// expectation.
511-
/// \param class_struct class type to be verified
512-
/// \param expected_identifiers expected list of lambda method handle
511+
/// \param class_type: class type to be verified
512+
/// \param expected_identifiers: expected list of lambda method handle
513513
/// references
514514
/// \return lambda method handles of the class
515515
require_type::java_lambda_method_handlest

src/goto-programs/remove_virtual_functions.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -301,17 +301,18 @@ goto_programt::targett remove_virtual_functionst::remove_virtual_function(
301301

302302
/// Used by get_functions to track the most-derived parent that provides an
303303
/// override of a given function.
304-
/// \param parameters: `this_id`: class name
305-
/// \param `last_method_defn`: the most-derived parent of `this_id` to define
304+
/// \param this_id: class name
305+
/// \param last_method_defn: the most-derived parent of `this_id` to define
306306
/// the requested function
307-
/// \param `component_name`: name of the function searched for
308-
/// \param `entry_map`: map of class identifiers to dispatch table entries
309-
/// \param `resolve_function_call`: function to resolve abstract method call
310-
/// \return `functions` is assigned a list of {class name, function symbol}
311-
/// pairs indicating that if `this` is of the given class, then the call will
312-
/// target the given function. Thus if A <: B <: C and A and C provide
313-
/// overrides of `f` (but B does not), get_child_functions_rec("C", C.f, "f")
307+
/// \param component_name: name of the function searched for
308+
/// \param [out] functions: `functions` is assigned a list of
309+
/// {class name, function symbol} pairs indicating that if `this` is of the
310+
/// given class, then the call will target the given function. Thus if
311+
/// A <: B <: C and A and C provide overrides of `f` (but B does not),
312+
/// get_child_functions_rec("C", C.f, "f")
314313
/// -> [{"C", C.f}, {"B", C.f}, {"A", A.f}]
314+
/// \param entry_map: map of class identifiers to dispatch table entries
315+
/// \param resolve_function_call`: function to resolve abstract method call
315316
void remove_virtual_functionst::get_child_functions_rec(
316317
const irep_idt &this_id,
317318
const symbol_exprt &last_method_defn,

src/goto-programs/show_goto_functions_json.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Author: Thomas Kiley
2525
#include "goto_model.h"
2626

2727
/// For outputting the GOTO program in a readable JSON format.
28-
/// \param ns: the namespace to use to resolve names with
29-
/// \param list_only: output only list of functions, but not their bodies
28+
/// \param _ns: the namespace to use to resolve names with
29+
/// \param _list_only: output only list of functions, but not their bodies
3030
show_goto_functions_jsont::show_goto_functions_jsont(
3131
const namespacet &_ns,
3232
bool _list_only)

src/goto-programs/show_goto_functions_xml.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Author: Thomas Kiley
2424
#include "goto_model.h"
2525

2626
/// For outputting the GOTO program in a readable xml format.
27-
/// \param ns: the namespace to use to resolve names with
28-
/// \param list_only: output only list of functions, but not their bodies
27+
/// \param _ns: the namespace to use to resolve names with
28+
/// \param _list_only: output only list of functions, but not their bodies
2929
show_goto_functions_xmlt::show_goto_functions_xmlt(
3030
const namespacet &_ns,
3131
bool _list_only)

src/goto-programs/system_library_symbols.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,9 @@ void system_library_symbolst::add_to_system_library(
257257
/// fake symbol with the given type, to determine whether the type alone
258258
/// is sufficient to classify a symbol of that type as internal.
259259
/// \param type: the type to check
260-
/// \return True if the type is an internal type. If specific system headers
261-
/// need to be included, the out_system_headers will contain the headers.
260+
/// \param [out] out_system_headers: specific system headers that need to be
261+
/// included
262+
/// \return True if the type is an internal type
262263
bool system_library_symbolst::is_type_internal(
263264
const typet &type,
264265
std::set<std::string> &out_system_headers) const
@@ -270,8 +271,9 @@ bool system_library_symbolst::is_type_internal(
270271

271272
/// To find out if a symbol is an internal symbol.
272273
/// \param symbol: the symbol to check
273-
/// \return True if the symbol is an internal symbol. If specific system headers
274-
/// need to be included, the out_system_headers will contain the headers.
274+
/// \param [out] out_system_headers: specific system headers that need to be
275+
/// included
276+
/// \return True if the symbol is an internal symbol
275277
bool system_library_symbolst::is_symbol_internal_symbol(
276278
const symbolt &symbol,
277279
std::set<std::string> &out_system_headers) const

src/pointer-analysis/value_set.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class value_sett
213213
/// \param dest: object map to update
214214
/// \param n: object number to add; must be mapped to the corresponding
215215
/// expression by `object_numbering`.
216-
/// \param object: offset into object `n` (may be unknown).
216+
/// \param offset: offset into object `n` (may be unknown).
217217
bool insert(
218218
object_mapt &dest,
219219
object_numberingt::number_type n,
@@ -224,7 +224,7 @@ class value_sett
224224
/// with a differing offset its offset is marked unknown.
225225
/// \param dest: object map to update
226226
/// \param expr: expression to add
227-
/// \param object: offset into `expr` (may be unknown).
227+
/// \param offset: offset into `expr` (may be unknown).
228228
bool insert(object_mapt &dest, const exprt &expr, const offsett &offset) const
229229
{
230230
return insert(dest, object_numbering.number(expr), offset);

src/util/journalling_symbol_table.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@
2626
///
2727
/// journalling_symbol_tablet journal(actual_table); // Wraps real_table
2828
/// alter_table(journal);
29-
29+
///
3030
/// for(const auto &added : journal.added())
3131
/// {
3232
/// printf("%s was added\n", added.name);
3333
/// }
34+
/// ```
3435
class journalling_symbol_tablet : public symbol_table_baset
3536
{
3637
public:

unit/testing-utils/require_expr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ typecast_exprt require_expr::require_typecast(const exprt &expr)
9595

9696
/// Verify a given exprt is a side_effect_exprt with appropriate statement.
9797
/// \param expr: The expression.
98-
/// \param symbol_name: The intended identifier of statement
98+
/// \param side_effect_statement: The kind of side effect that is required
9999
/// \return The expr cast to a side_effect_exprt
100100
side_effect_exprt require_expr::require_side_effect_expr(
101101
const exprt &expr,

0 commit comments

Comments
 (0)