From 41a4841eb28e789ccc2e9dbdce4d978613c6e3ee Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 29 May 2019 14:14:43 -0700 Subject: [PATCH] Fix extraction of the template parameter name --- etgtools/extractors.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/etgtools/extractors.py b/etgtools/extractors.py index ab2645a6..b089001c 100644 --- a/etgtools/extractors.py +++ b/etgtools/extractors.py @@ -744,8 +744,12 @@ class ClassDef(BaseDef): 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'):