Skip to content

Commit 2490725

Browse files
author
owen-jones-diffblue
authored
Merge pull request #3175 from owen-jones-diffblue/owen/doc/doxygen-parameters-in-function-comments
Fix documentation formatting
2 parents 3123dba + f4aecf2 commit 2490725

File tree

3 files changed

+36
-30
lines changed

3 files changed

+36
-30
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,12 @@ optionalt<symbolt> java_bytecode_convert_methodt::get_lambda_method_symbol(
331331
/// This creates a method symbol in the symtab, but doesn't actually perform
332332
/// method conversion just yet. The caller should call
333333
/// java_bytecode_convert_method later to give the symbol/method a body.
334-
/// \par parameters: `class_symbol`: class this method belongs to
335-
/// `method_identifier`: fully qualified method name, including type descriptor
336-
/// (e.g. "x.y.z.f:(I)")
337-
/// `m`: parsed method object to convert
338-
/// `symbol_table`: global symbol table (will be modified)
339-
/// `message_handler`: message handler to collect warnings
334+
/// \param class_symbol: The class this method belongs to
335+
/// \param method_identifier: The fully qualified method name, including type
336+
/// descriptor (e.g. "x.y.z.f:(I)")
337+
/// \param m: The parsed method object to convert.
338+
/// \param symbol_table: The global symbol table (will be modified).
339+
/// \param message_handler: A message handler to collect warnings.
340340
void java_bytecode_convert_method_lazy(
341341
const symbolt &class_symbol,
342342
const irep_idt &method_identifier,
@@ -674,10 +674,9 @@ static member_exprt to_member(const exprt &pointer, const exprt &fieldref)
674674

675675
/// Find all goto statements in 'repl' that target 'old_label' and redirect them
676676
/// to 'new_label'.
677-
/// \par parameters: 'repl', a block of code in which to perform replacement,
678-
/// and
679-
/// an old_label that should be replaced throughout by new_label.
680-
/// \return None (side-effects on repl)
677+
/// \param [in,out] repl: A block of code in which to perform replacement.
678+
/// \param old_label: The label to be replaced.
679+
/// \param new_label: The label to replace `old_label` with.
681680
void java_bytecode_convert_methodt::replace_goto_target(
682681
codet &repl,
683682
const irep_idt &old_label,
@@ -704,12 +703,12 @@ void java_bytecode_convert_methodt::replace_goto_target(
704703
/// encloses bytecode address range [address_start,address_limit).
705704
/// 'next_block_start_address' is the start address of 'tree's successor sibling
706705
/// and is used to determine when the range spans out of its bounds.
707-
/// \par parameters: 'tree', a code block descriptor, and 'this_block', the
708-
/// corresponding
709-
/// actual code_blockt. 'address_start' and 'address_limit', the Java
710-
/// bytecode offsets searched for. 'next_block_start_address', the
711-
/// bytecode offset of tree/this_block's successor sibling, or UINT_MAX
712-
/// if none exists.
706+
/// \param tree: A code block descriptor.
707+
/// \param this_block: The corresponding actual \ref code_blockt.
708+
/// \param address_start: the Java bytecode offsets searched for.
709+
/// \param address_limit: the Java bytecode offsets searched for.
710+
/// \param next_block_start_address: The bytecode offset of tree/this_block's
711+
/// successor sibling, or UINT_MAX if none exists.
713712
/// \return Returns the code_blockt most closely enclosing the given address
714713
/// range.
715714
code_blockt &java_bytecode_convert_methodt::get_block_for_pcrange(
@@ -738,12 +737,17 @@ code_blockt &java_bytecode_convert_methodt::get_block_for_pcrange(
738737
/// )^, and return a reference to the new branch highlighted with ^^. 'tree' and
739738
/// 'this_block' trees are always maintained with equal shapes. ('this_block'
740739
/// may additionally contain code_declt children which are ignored for this
741-
/// purpose)
742-
/// \par parameters: See above, plus the bytecode address map 'amap' and
743-
/// 'allow_merge'
744-
/// which is always true except when called from get_block_for_pcrange
745-
/// \return See above, plus potential side-effects on 'tree' and 'this_block' as
746-
/// described in 'Purpose'
740+
/// purpose).
741+
/// \param [in, out] tree: A code block descriptor.
742+
/// \param [in,out] this_block: The corresponding actual \ref code_blockt.
743+
/// \param address_start: the Java bytecode offsets searched for.
744+
/// \param address_limit: the Java bytecode offsets searched for.
745+
/// \param next_block_start_address: The bytecode offset of tree/this_block's
746+
/// successor sibling, or UINT_MAX if none exists.
747+
/// \param amap: The bytecode address map.
748+
/// \param allow_merge: Whether modifying the block tree is allowed. This is
749+
/// always true except when called from `get_block_for_pcrange`.
750+
/// \return The code_blockt most closely enclosing the given address range.
747751
code_blockt &java_bytecode_convert_methodt::get_or_create_block_for_pcrange(
748752
block_tree_nodet &tree,
749753
code_blockt &this_block,

src/goto-programs/remove_virtual_functions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ goto_programt::targett remove_virtual_functionst::remove_virtual_function(
9898
}
9999

100100
/// Create a concrete function call to replace a virtual one
101-
/// \param call [in/out]: the function call to update
101+
/// \param call [in,out]: the function call to update
102102
/// \param function_symbol: the function to be called
103103
/// \param ns: namespace
104104
static void create_static_function_call(

src/util/fresh_symbol.cpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ Author: Chris Smowton, [email protected]
1717
#include "symbol.h"
1818
#include "symbol_table_base.h"
1919

20-
/// Installs a fresh-named symbol with the requested name pattern
21-
/// \par parameters: `type`: type of new symbol
22-
/// `name_prefix`, `basename_prefix`: new symbol will be named
23-
/// name_prefix::basename_prefix$num unless name_prefix is empty, in which
20+
/// Installs a fresh-named symbol with the requested name pattern.
21+
/// \param type: The type of the new symbol.
22+
/// \param name_prefix: The new symbol will be named
23+
/// `name_prefix::basename_prefix$num` unless name_prefix is empty, in which
2424
/// case the :: prefix is omitted.
25-
/// `source_location`: new symbol source loc
26-
/// `symbol_mode`: new symbol mode
27-
/// `symbol_table`: table to add the new symbol to
25+
/// \param basename_prefix: See `name_prefix`.
26+
/// \param source_location: The source location for the new symbol.
27+
/// \param symbol_mode: The mode for the new symbol, e.g. ID_C, ID_java.
28+
/// \param symbol_table: The symbol table to add the new symbol to.
29+
/// \return The new symbol.
2830
symbolt &get_fresh_aux_symbol(
2931
const typet &type,
3032
const std::string &name_prefix,

0 commit comments

Comments
 (0)