Skip to content

Commit

Permalink
fix #37
Browse files Browse the repository at this point in the history
  • Loading branch information
marzer committed Sep 15, 2024
1 parent 59ac2dc commit a9d5b29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## Unreleased

- fixed crash when using simple type specifiers in friend declarations (#37) (@benjaminulmer)
- added workaround for [this issue](https://github.com/mosra/m.css/issues/239) introduced in Doxygen 1.9.7
- added auto-linking for various cppreference.com pages
- made `--bug-report` keep a copy of the original (pre-pre-processed?) XML
- updated m.css

Expand Down
8 changes: 5 additions & 3 deletions src/poxy/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def postprocess_xml(context: Context):
if id is not None:
id = str(id)
if id and id in member_references and member_references[id] is None:
member_references[refid] = memberdef
member_references[id] = memberdef
for id, memberdef in member_references.items():
if memberdef is None:
context.warning(rf"could not resolve <member> reference with id '{id}'!")
Expand Down Expand Up @@ -694,8 +694,10 @@ def postprocess_xml(context: Context):
changed = True
if attr is not None:
member.set(attr, attr_value)
elif kw == r'friend' and member.get(r'kind') != r'variable':
member.set(r'kind', r'friend')
if kw == r'friend' and type.text == r'' and member.get(r'kind') == r'variable':
type.text = r'friend'
matched_bad_keyword = False
break

# fix issues with trailing return types
if 1:
Expand Down

0 comments on commit a9d5b29

Please sign in to comment.