Skip to content

Commit b0d1a47

Browse files
Merge pull request #3394 from johnnonweiler/doc/reduce-doxygen-warnings-17
Fix Doxygen warnings in goto-programs/ folder
2 parents a1f1b7c + dcd6cd1 commit b0d1a47

7 files changed

+18
-33
lines changed

scripts/expected_doxygen_warnings.txt

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,6 @@
7676
/cbmc/src/ansi-c/expr2c_class.h:54: warning: The following parameters of expr2ct::convert_struct_type(const typet &src, const std::string &qualifiers_str, const std::string &declarator_str) are not documented:
7777
parameter 'qualifiers_str'
7878
parameter 'declarator_str'
79-
/cbmc/src/goto-programs/goto_convert_class.h:584: warning: The following parameters of goto_convertt::generate_thread_block(const code_blockt &thread_body, goto_programt &dest, const irep_idt &mode) are not documented:
80-
parameter 'mode'
81-
/cbmc/src/goto-programs/goto_model.h:150: warning: argument 'goto_model' of command @param is not found in the argument list of goto_model_functiont::goto_model_functiont(journalling_symbol_tablet &symbol_table, goto_functionst &goto_functions, const irep_idt &function_id, goto_functionst::goto_functiont &goto_function)
82-
/cbmc/src/goto-programs/goto_model.h:155: warning: The following parameters of goto_model_functiont::goto_model_functiont(journalling_symbol_tablet &symbol_table, goto_functionst &goto_functions, const irep_idt &function_id, goto_functionst::goto_functiont &goto_function) are not documented:
83-
parameter 'symbol_table'
84-
parameter 'goto_functions'
85-
parameter 'function_id'
86-
/cbmc/src/goto-programs/goto_program.cpp:21: warning: argument 'instruction' of command @param is not found in the argument list of goto_programt::output_instruction(const namespacet &ns, const irep_idt &identifier, std::ostream &out, const instructionst::value_type &it) const
87-
/cbmc/src/goto-programs/goto_program.h:560: warning: The following parameters of goto_programt::output_instruction(const namespacet &ns, const irep_idt &identifier, std::ostream &out, const instructionst::value_type &it) const are not documented:
88-
parameter 'it'
8979
/cbmc/src/goto-instrument/wmm/goto2graph.h:260: warning: The following parameters of instrumentert::cfg_visitort::visit_cfg_function(value_setst &value_sets, memory_modelt model, bool no_dependencies, loop_strategyt duplicate_body, const irep_idt &function, std::set< nodet > &ending_vertex) are not documented:
9080
parameter 'model'
9181
parameter 'no_dependencies'
@@ -127,21 +117,12 @@
127117
/cbmc/src/langapi/language.cpp:121: warning: argument 'parameter_type' of command @param is not found in the argument list of languaget::build_stub_parameter_symbol(const symbolt &function_symbol, size_t parameter_index, const code_typet::parametert &parameter)
128118
/cbmc/src/langapi/language.h:176: warning: The following parameters of languaget::build_stub_parameter_symbol(const symbolt &function_symbol, size_t parameter_index, const code_typet::parametert &parameter) are not documented:
129119
parameter 'parameter'
130-
/cbmc/src/goto-programs/rebuild_goto_start_function.h:31: warning: The following parameters of rebuild_goto_start_function_baset::rebuild_goto_start_function_baset(const optionst &options, maybe_lazy_goto_modelt &goto_model, message_handlert &message_handler) are not documented:
131-
parameter 'options'
132-
parameter 'message_handler'
133-
/cbmc/src/goto-programs/rebuild_goto_start_function.cpp:37: warning: argument 'entry_function' of command @param is not found in the argument list of rebuild_goto_start_function_baset< maybe_lazy_goto_modelt >::operator()(void)
134120
/cbmc/jbmc/src/java_bytecode/remove_exceptions.cpp:47: warning: Found unknown command `\class_identifier'
135-
/cbmc/src/goto-programs/resolve_inherited_component.cpp:13: warning: argument 'class_hierarchy' of command @param is not found in the argument list of resolve_inherited_componentt::resolve_inherited_componentt(const symbol_tablet &symbol_table, const class_hierarchyt &clas_hierarchy)
136-
/cbmc/src/goto-programs/resolve_inherited_component.h:24: warning: The following parameters of resolve_inherited_componentt::resolve_inherited_componentt(const symbol_tablet &symbol_table, const class_hierarchyt &clas_hierarchy) are not documented:
137-
parameter 'clas_hierarchy'
138121
/cbmc/jbmc/src/java_bytecode/select_pointer_type.h:50: warning: The following parameters of select_pointer_typet::specialize_generics(const pointer_typet &pointer_type, const generic_parameter_specialization_mapt &generic_parameter_specialization_map, generic_parameter_recursion_trackingt &visited_nodes) const are not documented:
139122
parameter 'visited_nodes'
140123
/cbmc/src/solvers/refinement/string_refinement.cpp:2099: warning: argument 'expr' of command @param is not found in the argument list of string_constraintt::universal_only_in_index(const string_constraintt &constr)
141124
/cbmc/src/solvers/refinement/string_refinement.cpp:2106: warning: The following parameters of string_constraintt::universal_only_in_index(const string_constraintt &constr) are not documented:
142125
parameter 'constr'
143-
/cbmc/src/goto-programs/goto_trace.cpp:132: warning: The following parameters of numeric_representation(const constant_exprt &expr, const namespacet &ns, const trace_optionst &options) are not documented:
144-
parameter 'ns'
145126
/cbmc/jbmc/src/java_bytecode/README.md:26: warning: unable to resolve reference to `java-bytecode-remove-instance-of' for \ref command
146127
/cbmc/jbmc/src/java_bytecode/README.md:89: warning: explicit link request to 'define' could not be resolved
147128
/cbmc/jbmc/src/java_bytecode/README.md:89: warning: explicit link request to 'define' could not be resolved
@@ -152,4 +133,3 @@
152133
/cbmc/src/pointer-analysis/dereference.h:26: warning: argument '_new_symbol_table' of command @param is not found in the argument list of dereferencet::dereferencet(const namespacet &_ns)
153134
/cbmc/src/pointer-analysis/dereference.h:26: warning: argument '_options' of command @param is not found in the argument list of dereferencet::dereferencet(const namespacet &_ns)
154135
/cbmc/src/pointer-analysis/dereference.h:26: warning: argument '_dereference_callback' of command @param is not found in the argument list of dereferencet::dereferencet(const namespacet &_ns)
155-
/cbmc/src/goto-programs/rebuild_goto_start_function.cpp:22: warning: argument '_message_handler' of command @param is not found in the argument list of rebuild_goto_start_function_baset< maybe_lazy_goto_modelt >::rebuild_goto_start_function_baset(const optionst &options, maybe_lazy_goto_modelt &goto_model, message_handlert &message_handler)

src/goto-programs/goto_convert.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,9 +1971,10 @@ void goto_convert(
19711971
/// E: END_THREAD
19721972
/// Z: SKIP
19731973
///
1974-
/// \param thread_body: sequence of codet's that can be executed
1975-
/// in parallel.
1976-
/// \param [out] dest: resulting goto-instructions.
1974+
/// \param thread_body: Sequence of codet's that can be executed
1975+
/// in parallel
1976+
/// \param [out] dest: Resulting goto-instructions
1977+
/// \param mode: Language mode
19771978
void goto_convertt::generate_thread_block(
19781979
const code_blockt &thread_body,
19791980
goto_programt &dest,

src/goto-programs/goto_model.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,14 @@ class goto_model_functiont
154154
{
155155
public:
156156
/// Construct a function wrapper
157-
/// \param goto_model: will be used to ensure unique numbering of
158-
/// goto programs, specifically incrementing its unused_location_number
159-
/// member each time a program is re-numbered.
160-
/// \param goto_function: function to wrap.
157+
/// \param symbol_table: Symbol table where any new symbols associated with
158+
/// `goto_function` should be inserted
159+
/// \param goto_functions: `goto_functionst` that contains `goto_function`.
160+
/// Only used to ensure unique numbering of `goto_function`, specifically
161+
/// incrementing its `unused_location_number` member each time the program
162+
/// is re-numbered.
163+
/// \param function_id: Name of function to wrap
164+
/// \param goto_function: Function to wrap
161165
goto_model_functiont(
162166
journalling_symbol_tablet &symbol_table,
163167
goto_functionst &goto_functions,

src/goto-programs/goto_program.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ class goto_programt
569569
const namespacet &ns,
570570
const irep_idt &identifier,
571571
std::ostream &out,
572-
const instructionst::value_type &it) const;
572+
const instructionst::value_type &instruction) const;
573573

574574
/// Compute the target numbers
575575
void compute_target_numbers();

src/goto-programs/goto_trace.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ void goto_trace_stept::output(
127127
/// options.base_prefix to be true appends either 0b or 0x to the number
128128
/// to indicate the base
129129
/// \param expr: expression to get numeric representation from
130+
/// \param ns: namespace for symbol type lookups
130131
/// \param options: configuration options
131132
/// \return a string with the numeric representation
132133
static std::string numeric_representation(

src/goto-programs/rebuild_goto_start_function.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020

2121
/// To rebuild the _start function in the event the program was compiled into
2222
/// GOTO with a different entry function selected.
23+
/// \param options: Command-line options
2324
/// \param goto_model: The goto functions (to replace the body of the _start
2425
/// function) and symbol table (to replace the _start function symbol) of the
2526
/// program.
26-
/// \param _message_handler: The message handler to report any messages with
27+
/// \param message_handler: The message handler to report any messages with
2728
template <typename maybe_lazy_goto_modelt>
2829
rebuild_goto_start_function_baset<maybe_lazy_goto_modelt>::
2930
rebuild_goto_start_function_baset(
@@ -38,8 +39,6 @@ rebuild_goto_start_function_baset<maybe_lazy_goto_modelt>::
3839
/// GOTO with a different entry function selected. It works by discarding the
3940
/// _start symbol and GOTO function and calling on the relevant languaget to
4041
/// generate the _start function again.
41-
/// \param entry_function: The name of the entry function that should be
42-
/// called from _start
4342
/// \return Returns true if either the symbol is not found, or something went
4443
/// wrong with generating the start_function. False otherwise.
4544
template<typename maybe_lazy_goto_modelt>

src/goto-programs/resolve_inherited_component.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
///
1717
resolve_inherited_componentt::resolve_inherited_componentt(
1818
const symbol_tablet &symbol_table,
19-
const class_hierarchyt &clas_hierarchy)
20-
: class_hierarchy(clas_hierarchy), symbol_table(symbol_table)
19+
const class_hierarchyt &class_hierarchy)
20+
: class_hierarchy(class_hierarchy), symbol_table(symbol_table)
2121
{
2222
// We require the class_hierarchy to be already populated if we are being
2323
// supplied it.

0 commit comments

Comments
 (0)