Skip to content

Commit dcd6cd1

Browse files
author
John Nonweiler
committed
Update parameter documentation in Doxygen comments
1 parent 5d4c14a commit dcd6cd1

File tree

5 files changed

+15
-24
lines changed

5 files changed

+15
-24
lines changed

scripts/expected_doxygen_warnings.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +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'
8679
/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:
8780
parameter 'model'
8881
parameter 'no_dependencies'
@@ -124,18 +117,12 @@
124117
/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)
125118
/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:
126119
parameter 'parameter'
127-
/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:
128-
parameter 'options'
129-
parameter 'message_handler'
130-
/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)
131120
/cbmc/jbmc/src/java_bytecode/remove_exceptions.cpp:47: warning: Found unknown command `\class_identifier'
132121
/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:
133122
parameter 'visited_nodes'
134123
/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)
135124
/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:
136125
parameter 'constr'
137-
/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:
138-
parameter 'ns'
139126
/cbmc/jbmc/src/java_bytecode/README.md:26: warning: unable to resolve reference to `java-bytecode-remove-instance-of' for \ref command
140127
/cbmc/jbmc/src/java_bytecode/README.md:89: warning: explicit link request to 'define' could not be resolved
141128
/cbmc/jbmc/src/java_bytecode/README.md:89: warning: explicit link request to 'define' could not be resolved
@@ -146,4 +133,3 @@
146133
/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)
147134
/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)
148135
/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)
149-
/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_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>

0 commit comments

Comments
 (0)