Skip to content

Commit 525143d

Browse files
author
John Nonweiler
committed
Wrap XML in Doxygen comment with \code block
Fix Doxygen warnings about unknown XML tags and add syntax highlighting to documentation using the Doxygen `\code{.xml}` and `\endcode` commands
1 parent e401667 commit 525143d

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

scripts/expected_doxygen_warnings.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,6 @@
155155
parameter 'clas_hierarchy'
156156
/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:
157157
parameter 'visited_nodes'
158-
/cbmc/src/goto-programs/show_goto_functions_xml.cpp:35: warning: Unsupported xml/html tag <functions> found
159-
/cbmc/src/goto-programs/show_goto_functions_xml.cpp:36: warning: Unsupported xml/html tag <function> found
160-
/cbmc/src/goto-programs/show_goto_functions_xml.cpp:37: warning: Unsupported xml/html tag <instructions> found
161-
/cbmc/src/goto-programs/show_goto_functions_xml.cpp:37: warning: Unsupported xml/html tag <location> found
162-
/cbmc/src/goto-programs/show_goto_functions_xml.cpp:38: warning: Unsupported xml/html tag <instruction_value> found
163-
/cbmc/src/goto-programs/show_goto_functions_xml.cpp:39: warning: Unsupported xml/html tag </instruction_value> found
164-
/cbmc/src/goto-programs/show_goto_functions_xml.cpp:39: warning: Unsupported xml/html tag </instruction> found
165-
/cbmc/src/goto-programs/show_goto_functions_xml.cpp:39: warning: Unsupported xml/html tag </instructions> found
166-
/cbmc/src/goto-programs/show_goto_functions_xml.cpp:39: warning: Unsupported xml/html tag </function> found
167-
/cbmc/src/goto-programs/show_goto_functions_xml.cpp:39: warning: Unsupported xml/html tag </functions> found
168158
/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)
169159
/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:
170160
parameter 'constr'

src/goto-programs/show_goto_functions_xml.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ show_goto_functions_xmlt::show_goto_functions_xmlt(
3333
{}
3434

3535
/// Walks through all of the functions in the program and returns an xml object
36-
/// representing all their functions. Produces output like this: <functions>
36+
/// representing all their functions. Produces output like this: \code{.xml}
37+
/// <functions>
3738
/// <function name=main, is_body_available=true, is_internal=false>
3839
/// <instructions> <instruction_id=ASSIGN> <location file="main.c" line="14"/>
3940
/// <instruction_value> // 34 file main.c line 1 s = { 'a', 'b', 'c', 0 };
40-
/// </instruction_value> </instruction> </instructions> </function> </functions>
41+
/// </instruction_value> </instruction> </instructions> </function>
42+
/// </functions> \endcode
4143
/// \param goto_functions: the goto functions that make up the program
4244
xmlt show_goto_functions_xmlt::convert(
4345
const goto_functionst &goto_functions)

0 commit comments

Comments
 (0)