Skip to content

Commit 4c65ee1

Browse files
author
John Nonweiler
committed
Move forward declaration of class (to help doxygen)
Before this commit, get_xml_options had the parameters "(const class xmlt &xml, cmdlinet &cmdline)" in the header file, and "(const xmlt &xml, cmdlinet &cmdline)" in the cpp file. Doxygen then produced a warning "no matching class member found". This commit adds a forward declaration "class xmlt;" in the header file, so that both versions of get_xml_options can have identical parameter lists.
1 parent 169bd36 commit 4c65ee1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cbmc/xml_interface.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Author: Daniel Kroening, [email protected]
1414

1515
#include <util/cmdline.h>
1616

17+
class xmlt;
18+
1719
class xml_interfacet
1820
{
1921
public:
@@ -24,7 +26,7 @@ class xml_interfacet
2426

2527
protected:
2628
void get_xml_options(cmdlinet &cmdline);
27-
void get_xml_options(const class xmlt &xml, cmdlinet &cmdline);
29+
void get_xml_options(const xmlt &xml, cmdlinet &cmdline);
2830
};
2931

3032
#endif // CPROVER_CBMC_XML_INTERFACE_H

0 commit comments

Comments
 (0)