mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Use iteration over children to detect elements matching doxygen's deprecated tags.
This commit is contained in:
@@ -276,6 +276,10 @@ class FunctionDef(BaseDef, FixWxPrefix):
|
||||
|
||||
def extract(self, element):
|
||||
super(FunctionDef, self).extract(element)
|
||||
|
||||
# Check for deprecation
|
||||
self.deprecated = bool([x for x in element.iter() if isinstance(x, et.Element) and x.get('id', "no_id_present").startswith('deprecated')])
|
||||
|
||||
self.type = flattenNode(element.find('type'))
|
||||
self.definition = element.find('definition').text
|
||||
self.argsString = element.find('argsstring').text
|
||||
@@ -711,6 +715,9 @@ class ClassDef(BaseDef):
|
||||
|
||||
self.nodeBases = self.findHierarchy(element, {}, [], False)
|
||||
|
||||
# Check for deprecation:
|
||||
self.deprecated = bool([x for x in element.iter() if isinstance(x, et.Element) and x.get('id', "no_id_present").startswith('deprecated')])
|
||||
|
||||
for node in element.findall('basecompoundref'):
|
||||
self.bases.append(node.text)
|
||||
for node in element.findall('derivedcompoundref'):
|
||||
|
||||
Reference in New Issue
Block a user