Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Debug #455

Merged
merged 4 commits into from
Sep 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions doc/python/doxygen_xml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,18 @@


def _templateParamToDict(param):
type = param.find("type")
type_ = param.find("type")
declname = param.find("declname")
defname = param.find("defname")
# FIXME type may contain references in two ways:
# - the real param type
# - the name of the template argument is recognized as the name of a type...
if defname is None and declname is None:
typetext = type.text
for c in type.iter():
if c == type:
typetext = type_.text
if typetext is None:
typetext = ""
for c in type_.iter():
if c == type_:
continue
if c.text is not None:
typetext += c.text
Expand All @@ -111,10 +113,10 @@ def _templateParamToDict(param):
assert len(s) == 2
return {"type": s[0].strip(), "name": s[1].strip()}
else:
return {"type": type.text, "name": ""}
return {"type": type_.text, "name": ""}
else:
assert defname.text == declname.text
return {"type": type.text, "name": defname.text}
return {"type": type_.text, "name": defname.text}


def makeHeaderGuard(filename):
Expand Down