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;

0 commit comments

Comments
 (0)