Skip to content

Commit f7f6eed

Browse files
authored
Merge pull request #7139 from tautschnig/fixes/doxygen
Fix Doxygen comment issues
2 parents 0f4fa7d + 9f7e3cf commit f7f6eed

16 files changed

+32
-33
lines changed

jbmc/src/java_bytecode/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ when they are in some way requested.
659659

660660
The mechanism used to achieve this is initially common to both eager and
661661
context-insensitive lazy loading. \ref java_bytecode_languaget::typecheck calls
662-
[java_bytecode_convert_class](\ref java_bytecode_languaget::java_bytecode_convert_class)
662+
[java_bytecode_convert_class](\ref java_bytecode_convert_class)
663663
(for each class loaded by the class loader) to create symbols for all classes
664664
and the methods in them. The methods, along with their parsed representation
665665
(including bytecode) are also added to a map called
@@ -672,7 +672,7 @@ determine which loading strategy to use.
672672
\subsection eager-loading Eager loading
673673

674674
If [lazy_methods_mode](\ref java_bytecode_language_optionst::lazy_methods_mode) is
675-
\ref java_bytecode_languaget::LAZY_METHODS_MODE_EAGER then eager loading is
675+
\ref LAZY_METHODS_MODE_EAGER then eager loading is
676676
used. Under eager loading
677677
\ref java_bytecode_languaget::convert_single_method(const irep_idt &, symbol_table_baset &, lazy_class_to_declared_symbols_mapt &)
678678
is called once for each method listed in method_bytecode (described above). This
@@ -696,7 +696,7 @@ locate further classes and methods to load. The following paragraph describes
696696
the mechanism used.
697697

698698
If [lazy_methods_mode](\ref java_bytecode_language_optionst::lazy_methods_mode) is
699-
\ref lazy_methods_modet::LAZY_METHODS_MODE_CONTEXT_INSENSITIVE then
699+
\ref LAZY_METHODS_MODE_CONTEXT_INSENSITIVE then
700700
context-insensitive lazy loading is used. Under this stragegy
701701
\ref java_bytecode_languaget::do_ci_lazy_method_conversion is called to do all
702702
conversion. This calls `operator()` of \ref ci_lazy_methodst,

jbmc/src/java_bytecode/java_bytecode_convert_class.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class java_bytecode_convert_classt
120120
///
121121
/// An overlay method is a method with the annotation
122122
/// \@OverlayMethodImplementation. They should only appear in
123-
/// [overlay classes](\ref java_class_loader.cpp::is_overlay_class). They
123+
/// [overlay classes](\ref is_overlay_class). They
124124
/// will be loaded by JBMC instead of the method with the same signature
125125
/// in the underlying class. It is an error if there is no method with the
126126
/// same signature in the underlying class. It is an error if a method in
@@ -142,7 +142,7 @@ class java_bytecode_convert_classt
142142
///
143143
/// 2. If it has the annotation\@IgnoredMethodImplementation.
144144
/// This kind of ignord method is intended for use in
145-
/// [overlay classes](\ref java_class_loader.cpp::is_overlay_class), in
145+
/// [overlay classes](\ref is_overlay_class), in
146146
/// particular for methods which must exist in the overlay class so that
147147
/// it will compile, e.g. default constructors, but which we do not want
148148
/// to overlay the corresponding method in the

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ Author: Daniel Kroening, [email protected]
4848
/// Iterates through the parameters of the function type \p ftype, finds a new
4949
/// new name for each parameter and renames them in `ftype.parameters()` as
5050
/// well as in the \p symbol_table.
51+
/// Assigns parameter names (side-effects on `ftype`) to function stub
52+
/// parameters, which are initially nameless as method conversion hasn't
53+
/// happened. Also creates symbols in `symbol_table`.
5154
/// \param [in,out] ftype:
5255
/// Function type whose parameters should be named.
5356
/// \param name_prefix:
5457
/// Prefix for parameter names, typically the parent function's name.
5558
/// \param [in,out] symbol_table:
5659
/// Global symbol table.
57-
/// \return Assigns parameter names (side-effects on `ftype`) to function stub
58-
/// parameters, which are initially nameless as method conversion hasn't
59-
/// happened. Also creates symbols in `symbol_table`.
6060
static void assign_parameter_names(
6161
java_method_typet &ftype,
6262
const irep_idt &name_prefix,

jbmc/src/java_bytecode/java_bytecode_language.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,9 +1156,9 @@ const select_pointer_typet &
11561156

11571157
/// Provide feedback to `language_filest` so that when asked for a lazy method,
11581158
/// it can delegate to this instance of java_bytecode_languaget.
1159-
/// \return Populates `methods` with the complete list of lazy methods that are
1160-
/// available to convert (those which are valid parameters for
1161-
/// `convert_lazy_method`)
1159+
/// \param [out] methods: Populates `methods` with the complete list of lazy
1160+
/// methods that are available to convert (those which are valid parameters
1161+
/// for `convert_lazy_method`)
11621162
void java_bytecode_languaget::methods_provided(
11631163
std::unordered_set<irep_idt> &methods) const
11641164
{

jbmc/src/java_bytecode/java_object_factory.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,6 @@ void java_object_factoryt::declare_created_symbols(code_blockt &init_code)
11381138
/// A function to generate a new local symbol and add it to the symbol table
11391139
/// \param location:
11401140
/// Source location associated with nondet-initialization.
1141-
/// \return Appends instructions to `assignments`
11421141
static void allocate_nondet_length_array(
11431142
code_blockt &assignments,
11441143
const exprt &lhs,

jbmc/src/java_bytecode/java_string_literals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Author: Chris Smowton, [email protected]
2323
#include <sstream>
2424

2525
/// Convert UCS-2 or UTF-16 to an array expression.
26-
/// \par parameters: `in`: wide string to convert
26+
/// \param in: wide string to convert
2727
/// \return Returns a Java char array containing the same wchars.
2828
static array_exprt utf16_to_array(const std::wstring &in)
2929
{

jbmc/src/java_bytecode/nondet.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ using allocate_local_symbolt =
2222
/// const mp_integer &max_value,
2323
/// const std::string &name_prefix,
2424
/// const typet &int_type,
25-
/// const irep_idt &mode,
2625
/// const source_locationt &source_location,
27-
/// symbol_table_baset &symbol_table,
26+
/// allocate_objectst &allocate_objects,
2827
/// code_blockt &instructions)
2928
/// except the minimum and maximum values are represented as exprts.
3029
symbol_exprt generate_nondet_int(
@@ -35,6 +34,16 @@ symbol_exprt generate_nondet_int(
3534
allocate_objectst &allocate_objects,
3635
code_blockt &instructions);
3736

37+
/// Same as \ref generate_nondet_int(
38+
/// const mp_integer &min_value,
39+
/// const mp_integer &max_value,
40+
/// const std::string &name_prefix,
41+
/// const typet &int_type,
42+
/// const source_locationt &source_location,
43+
/// allocate_objectst &allocate_objects,
44+
/// code_blockt &instructions)
45+
/// except the minimum and maximum values are represented as exprts, and symbols
46+
/// are allocated using \ref allocate_local_symbolt.
3847
symbol_exprt generate_nondet_int(
3948
const exprt &min_value_expr,
4049
const exprt &max_value_expr,

src/analyses/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ To be documented.
9595

9696
Implemented in `src/analyses/dependence_graph.h(cpp)`. It is a graph and an
9797
abstract interpreter at the same time. The abstract interpretation nature
98-
allows a dependence graph to [build itself](#Construction)
98+
allows a dependence graph to [build itself](Construction)
9999
(the graph) from a given GOTO program.
100100

101101
A dependence graph extends the class `grapht` with `dep_nodet` as the type of

src/analyses/cfg_dominators.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ void cfg_dominators_templatet<P, T, post_dom>::fixedpoint(P &program)
256256

257257
/// Pretty-print a single node in the dominator tree. Supply a specialisation if
258258
/// operator<< is not sufficient.
259-
/// \par parameters: `node` to print and stream `out` to pretty-print it to
259+
/// \param node: node to print
260+
/// \param out: stream to pretty-print it to
260261
template <class T>
261262
void dominators_pretty_print_node(const T &node, std::ostream &out)
262263
{

src/analyses/variable-sensitivity/value_set_pointer_abstract_object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class value_set_pointer_abstract_objectt : public abstract_pointer_objectt,
9393
protected:
9494
CLONE
9595

96-
/// \copydoc abstract_object::merge
96+
/// \copydoc abstract_objectt::merge
9797
abstract_object_pointert merge(
9898
const abstract_object_pointert &other,
9999
const widen_modet &widen_mode) const override;

src/cpp/cpp_scopes.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ cpp_idt &cpp_scopest::put_into_scope(
6969
}
7070
}
7171

72-
/// \return Purpose:
7372
void cpp_scopest::print_current(std::ostream &out) const
7473
{
7574
const cpp_scopet *scope=current_scope_ptr;

src/goto-cc/goto_cc_mode.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ int goto_cc_modet::main(int argc, const char **argv)
131131
}
132132
}
133133

134-
/// prints a message informing the user about incorrect options
135-
/// \return none
134+
/// Prints a message informing the user about incorrect options.
136135
void goto_cc_modet::usage_error()
137136
{
138137
std::cerr << "Usage error!\n\n";

src/goto-cc/ms_cl_cmdline.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ bool ms_cl_cmdlinet::parse(const std::vector<std::string> &arguments)
9797
return false;
9898
}
9999

100-
/// \return none
101100
void ms_cl_cmdlinet::parse_env()
102101
{
103102
// first do environment
@@ -170,7 +169,6 @@ static std::istream &my_wgetline(std::istream &in, std::wstring &dest)
170169
return in;
171170
}
172171

173-
/// \return none
174172
void ms_cl_cmdlinet::process_response_file(const std::string &file)
175173
{
176174
std::ifstream infile(file);
@@ -231,7 +229,6 @@ void ms_cl_cmdlinet::process_response_file(const std::string &file)
231229
}
232230
}
233231

234-
/// \return none
235232
void ms_cl_cmdlinet::process_response_file_line(const std::string &line)
236233
{
237234
// In a response file, multiple compiler options and source-code files can
@@ -271,7 +268,6 @@ void ms_cl_cmdlinet::process_response_file_line(const std::string &line)
271268
parse(arguments);
272269
}
273270

274-
/// \return none
275271
void ms_cl_cmdlinet::process_non_cl_option(
276272
const std::string &s)
277273
{

src/goto-cc/ms_link_cmdline.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ static std::istream &my_wgetline(std::istream &in, std::wstring &dest)
106106
return in;
107107
}
108108

109-
/// \return none
110109
void ms_link_cmdlinet::process_response_file(const std::string &file)
111110
{
112111
std::ifstream infile(file);
@@ -166,7 +165,6 @@ void ms_link_cmdlinet::process_response_file(const std::string &file)
166165
}
167166
}
168167

169-
/// \return none
170168
void ms_link_cmdlinet::process_response_file_line(const std::string &line)
171169
{
172170
// In a response file, multiple compiler options and source-code files can
@@ -206,7 +204,6 @@ void ms_link_cmdlinet::process_response_file_line(const std::string &line)
206204
parse(arguments);
207205
}
208206

209-
/// \return none
210207
void ms_link_cmdlinet::process_non_link_option(const std::string &s)
211208
{
212209
set(s);

src/goto-programs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ returned from.
631631

632632
If the function has a return value, an \ref assignment-step-structure
633633
assignment will be made to a variable with identifier with suffix
634-
\ref remove_returns::RETURN_VALUE_SUFFIX.
634+
\ref RETURN_VALUE_SUFFIX.
635635

636636
\subsection assignment-step-structure Assignment
637637

src/solvers/strings/string_refinement.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,12 @@ void string_refinementt::set_to(const exprt &expr, bool value)
291291
}
292292

293293
/// Add association for each char pointer in the equation
294-
/// \param symbol_solver: a union_find_replacet object to keep track of
295-
/// char pointer equations
294+
/// \param [in,out] symbol_solver: a union_find_replacet object to keep track of
295+
/// char pointer equations. Char pointers that have been set equal by an
296+
/// equation are associated to the same element.
296297
/// \param equations: vector of equations
297298
/// \param ns: namespace
298299
/// \param stream: output stream
299-
/// \return union_find_replacet where char pointer that have been set equal
300-
/// by an equation are associated to the same element
301300
static void add_equations_for_symbol_resolution(
302301
union_find_replacet &symbol_solver,
303302
const std::vector<exprt> &equations,

0 commit comments

Comments
 (0)