Skip to content

Commit

Permalink
Fix array parameter
Browse files Browse the repository at this point in the history
Doxygen xml has an optional 'array' in parameters,
append this to parameters on output.
Fixes #184.
  • Loading branch information
schlatterbeck committed Mar 29, 2023
1 parent 2759a39 commit 3343fbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exhale/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2196,7 +2196,10 @@ def parseFunctionSignatures(self):
# 2. The function parameter list.
parameters = []
for param in memberdef.find_all("param", recursive=False):
parameters.append(param.type.text)
if param.array:
parameters.append(param.type.text + param.array.text)
else:
parameters.append(param.type.text)
func.parameters = utils.sanitize_all(parameters)
# 3. The template parameter list.
templateparamlist = memberdef.templateparamlist
Expand Down

0 comments on commit 3343fbe

Please sign in to comment.