Skip to content

Commit

Permalink
Fix extraction of the template parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinD42 committed May 29, 2019
1 parent 8442697 commit 41a4841
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions etgtools/extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,8 +744,12 @@ def extract(self, element):
for node in element.findall('includes'):
self.includes.append(node.text)
for node in element.findall('templateparamlist/param'):
txt = node.find('type').text
txt = txt.replace('class ', '')
if node.find('declname') is not None:
txt = node.find('declname').text
else:
txt = node.find('type').text
txt = txt.replace('class ', '')
txt = txt.replace('typename ', '')
self.templateParams.append(txt)

for node in element.findall('innerclass'):
Expand Down

0 comments on commit 41a4841

Please sign in to comment.