Skip to content

Commit 589e565

Browse files
authored
Merge pull request #3170 from johnnonweiler/doc/reduce-doxygen-warnings-5
Reduce Doxygen warnings
2 parents 62eb5bc + 48061b4 commit 589e565

File tree

10 files changed

+61
-48
lines changed

10 files changed

+61
-48
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,

jbmc/src/java_bytecode/replace_java_nondet.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ static void replace_java_nondet(goto_programt &goto_program)
323323
}
324324
}
325325

326+
/// Replace calls to nondet library functions with an internal nondet
327+
/// representation in a single function.
328+
/// \param function: The goto program to modify.
326329
void replace_java_nondet(goto_model_functiont &function)
327330
{
328331
goto_programt &program = function.get_goto_function().body;
@@ -341,6 +344,9 @@ void replace_java_nondet(goto_functionst &goto_functions)
341344
remove_skip(goto_functions);
342345
}
343346

347+
/// Replace calls to nondet library functions with an internal nondet
348+
/// representation.
349+
/// \param goto_model: The goto program to modify.
344350
void replace_java_nondet(goto_modelt &goto_model)
345351
{
346352
replace_java_nondet(goto_model.goto_functions);

jbmc/src/java_bytecode/replace_java_nondet.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,10 @@ class goto_modelt;
1616
class goto_functionst;
1717
class goto_model_functiont;
1818

19-
/// Replace calls to nondet library functions with an internal nondet
20-
/// representation.
21-
/// \param goto_model: The goto program to modify.
2219
void replace_java_nondet(goto_modelt &);
2320

2421
void replace_java_nondet(goto_functionst &);
2522

26-
/// Replace calls to nondet library functions with an internal nondet
27-
/// representation in a single function.
28-
/// \param function: The goto program to modify.
2923
void replace_java_nondet(goto_model_functiont &function);
3024

3125
#endif

src/cbmc/xml_interface.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Author: Daniel Kroening, [email protected]
1414

1515
#include <util/cmdline.h>
1616

17+
class xmlt;
18+
1719
class xml_interfacet
1820
{
1921
public:
@@ -24,7 +26,7 @@ class xml_interfacet
2426

2527
protected:
2628
void get_xml_options(cmdlinet &cmdline);
27-
void get_xml_options(const class xmlt &xml, cmdlinet &cmdline);
29+
void get_xml_options(const xmlt &xml, cmdlinet &cmdline);
2830
};
2931

3032
#endif // CPROVER_CBMC_XML_INTERFACE_H

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,

src/util/options.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@ void optionst::set_option(const std::string &option,
2727
set_option(option, std::string(value?"1":"0"));
2828
}
2929

30-
void optionst::set_option(const std::string &option,
31-
const signed int value)
30+
void optionst::set_option(const std::string &option, const int value)
3231
{
3332
set_option(option, std::to_string(value));
3433
}
3534

36-
void optionst::set_option(const std::string &option,
37-
const unsigned int value)
35+
void optionst::set_option(const std::string &option, const unsigned value)
3836
{
3937
set_option(option, std::to_string(value));
4038
}

0 commit comments

Comments
 (0)