Skip to content

Commit 036526e

Browse files
author
John Nonweiler
committed
Update parameter documentation
Doxygen produces warnings if some parameters are documentated and not others, or if there is documentation for parameters which don't exist.
1 parent bffa0b9 commit 036526e

File tree

5 files changed

+22
-9
lines changed

5 files changed

+22
-9
lines changed

jbmc/src/java_bytecode/java_entry_point.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -638,10 +638,8 @@ bool java_entry_point(
638638
/// \param message_handler: Where to write output to
639639
/// \param assume_init_pointers_not_null: When creating pointers, assume they
640640
/// always take a non-null value.
641-
/// \param max_nondet_array_length: The length of the arrays to create when
642-
/// filling them
643-
/// \param max_nondet_tree_depth: defines the maximum depth of the object tree
644-
/// (see java_entry_points documentation for details)
641+
/// \param assert_uncaught_exceptions: Add an uncaught-exception check
642+
/// \param object_factory_parameters: Parameters for creation of arguments
645643
/// \param pointer_type_selector: Logic for substituting types of pointers
646644
/// \returns true if error occurred on entry point search, false otherwise
647645
bool generate_java_start_function(

jbmc/src/java_bytecode/java_object_factory.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ class java_object_factoryt
176176
/// \param allocate_type: type of the object allocated
177177
/// \param symbol_table: symbol table
178178
/// \param loc: location in the source
179+
/// \param function_id: function ID to associate with auxiliary variables
179180
/// \param output_code: code block to which the necessary code is added
180181
/// \param symbols_created: created symbols to be declared by the caller
181182
/// \param cast_needed: Boolean flags saying where we need to cast the malloc
@@ -242,6 +243,7 @@ exprt allocate_dynamic_object(
242243
/// allocated
243244
/// \param symbol_table: symbol table
244245
/// \param loc: location in the source
246+
/// \param function_id: function ID to associate with auxiliary variables
245247
/// \param output_code: code block to which the necessary code is added
246248
/// \return the dynamic object created
247249
exprt allocate_dynamic_object_with_decl(
@@ -392,6 +394,8 @@ code_assignt java_object_factoryt::get_null_assignment(
392394
/// NO_UPDATE_IN_PLACE: initialize `expr` from scratch
393395
/// MUST_UPDATE_IN_PLACE: reinitialize an existing object
394396
/// MAY_UPDATE_IN_PLACE: invalid input
397+
/// \param location:
398+
/// Source location associated with nondet-initialization.
395399
void java_object_factoryt::gen_pointer_target_init(
396400
code_blockt &assignments,
397401
const exprt &expr,
@@ -707,6 +711,8 @@ bool initialize_nondet_string_fields(
707711
/// * MAY_UPDATE_IN_PLACE: generate a runtime nondet branch between the NO_
708712
/// and MUST_ cases.
709713
/// * MUST_UPDATE_IN_PLACE: reinitialize an existing object
714+
/// \param location:
715+
/// Source location associated with nondet-initialization.
710716
void java_object_factoryt::gen_nondet_pointer_init(
711717
code_blockt &assignments,
712718
const exprt &expr,
@@ -930,6 +936,8 @@ void java_object_factoryt::gen_nondet_pointer_init(
930936
/// \param depth:
931937
/// Number of times that a pointer has been dereferenced from the root of the
932938
/// object tree that we are initializing.
939+
/// \param location:
940+
/// Source location associated with nondet-initialization.
933941
/// \return
934942
/// A symbol expression of type \p replacement_pointer corresponding to a
935943
/// pointer to object `tmp_object` (see above).
@@ -994,6 +1002,8 @@ symbol_exprt java_object_factoryt::gen_nondet_subtype_pointer_init(
9941002
/// NO_UPDATE_IN_PLACE: initialize `expr` from scratch
9951003
/// MUST_UPDATE_IN_PLACE: reinitialize an existing object
9961004
/// MAY_UPDATE_IN_PLACE: invalid input
1005+
/// \param location:
1006+
/// Source location associated with nondet-initialization.
9971007
void java_object_factoryt::gen_nondet_struct_init(
9981008
code_blockt &assignments,
9991009
const exprt &expr,
@@ -1159,6 +1169,8 @@ void java_object_factoryt::gen_nondet_struct_init(
11591169
/// MAY_UPDATE_IN_PLACE: generate a runtime nondet branch between the NO_
11601170
/// and MUST_ cases.
11611171
/// MUST_UPDATE_IN_PLACE: reinitialize an existing object
1172+
/// \param location:
1173+
/// Source location associated with nondet-initialization.
11621174
void java_object_factoryt::gen_nondet_init(
11631175
code_blockt &assignments,
11641176
const exprt &expr,
@@ -1307,6 +1319,8 @@ const symbol_exprt java_object_factoryt::gen_nondet_int_init(
13071319
/// \param element_type:
13081320
/// Actual element type of the array (the array for all reference types will
13091321
/// have void* type, but this will be annotated as the true member type).
1322+
/// \param location:
1323+
/// Source location associated with nondet-initialization.
13101324
/// \return Appends instructions to `assignments`
13111325
void java_object_factoryt::allocate_nondet_length_array(
13121326
code_blockt &assignments,

jbmc/src/java_bytecode/java_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,8 @@ inline typet java_type_from_string_with_exception(
695695
}
696696

697697
/// Get the index in the subtypes array for a given component.
698-
/// \param t The type we search for the subtypes in.
699-
/// \param identifier The string identifier of the type of the component.
698+
/// \param gen_types: The subtypes array.
699+
/// \param identifier: The string identifier of the type of the component.
700700
/// \return Optional with the size if the identifier was found.
701701
inline const optionalt<size_t> java_generics_get_index_for_subtype(
702702
const std::vector<java_generic_parametert> &gen_types,

src/goto-programs/class_hierarchy.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ class class_hierarchy_grapht : public grapht<class_hierarchy_graph_nodet>
130130
/// Output the class hierarchy
131131
/// \param hierarchy: the class hierarchy to be printed
132132
/// \param message_handler: the message handler
133-
/// \param ui: the UI format
134133
/// \param children_only: print the children only and do not print the parents
135134
void show_class_hierarchy(
136135
const class_hierarchyt &hierarchy,

src/goto-programs/read_goto_binary.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,10 @@ bool read_object_and_link(
260260
}
261261

262262
/// \brief reads an object file, and also updates the config
263-
/// \param file_name file name of the goto binary
264-
/// \param message_handler for diagnostics
263+
/// \param file_name: file name of the goto binary
264+
/// \param dest_symbol_table: symbol table to update
265+
/// \param dest_functions: collection of goto functions to update
266+
/// \param message_handler: for diagnostics
265267
/// \return true on error, false otherwise
266268
bool read_object_and_link(
267269
const std::string &file_name,

0 commit comments

Comments
 (0)