Skip to content

Commit

Permalink
If param type elements have a child 'ref' element, take the type from…
Browse files Browse the repository at this point in the history
… there.
  • Loading branch information
james-strauss-uwa committed Mar 30, 2022
1 parent 23c62a5 commit c69ee50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/xml2palette/xml2palette.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,11 @@ def process_compounddef_default(compounddef):
for gggchild in ggchild:
if gggchild.tag == "type":
type = gggchild.text

# also look at children with ref tag
for ggggchild in gggchild:
if ggggchild.tag == "ref":
type = ggggchild.text
if gggchild.tag == "declname":
name = gggchild.text
if gggchild.tag == "defname":
Expand Down

0 comments on commit c69ee50

Please sign in to comment.