Skip to content

Commit

Permalink
Merge pull request #439 from jcarpent/hppfcl2x
Browse files Browse the repository at this point in the history
Fix parsing of doxygen doc
  • Loading branch information
jcarpent authored Jun 20, 2023
2 parents 2e1fd51 + 99b05b2 commit 64b5955
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmake
12 changes: 8 additions & 4 deletions doc/python/doxygen_xml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,19 +430,23 @@ def __init__(self, *args):
self.typedef[memberdef.find("name").text.strip()] = True

elif memberdef.attrib["kind"] == "enum":
if memberdef.find("name").text is None:
ref_name = self._className() + "::" + "anonymous_enum"
else:
ref_name = self._className() + "::" + memberdef.find("name").text
ref = Reference(
index=self.index,
id=memberdef.attrib["id"],
name=self._className() + "::" + memberdef.find("name").text,
name=ref_name,
)
self.index.registerReference(ref)
for value in memberdef.iterchildren("enumvalue"):
ref = Reference(
value_ref = Reference(
index=self.index,
id=value.attrib["id"],
name=self._className() + "::" + memberdef.find("name").text,
name=ref.name,
)
self.index.registerReference(ref)
self.index.registerReference(value_ref)
elif memberdef.attrib["kind"] == "function":
self._memberfunc(memberdef)

Expand Down

0 comments on commit 64b5955

Please sign in to comment.