Debian Codegraph @

debian/patches/git-doxygen

raw
1 commit 6989c52a3fb9473fd61326e548440fff887525c2
2 Author: Michel Zou <[email protected]>
3 Date: Thu Feb 6 07:02:06 2020 +0100
4
5 Fix doxy2swig.py IndexError: list index out of range
6
7 diff --git a/doc/doxy2swig.py b/doc/doxy2swig.py
8 index 5589b0d..a01c4b1 100644
9 --- a/doc/doxy2swig.py
10 +++ b/doc/doxy2swig.py
11 @@ -299,7 +299,10 @@ class Doxy2SWIG:
12 name = first['name'].firstChild.data
13
14 for n in node.getElementsByTagName('param'):
15 - arg_type = n.getElementsByTagName('type')[0]
16 + elts = n.getElementsByTagName('type')
17 + if len(elts) == 0:
18 + continue
19 + arg_type = elts[0]
20 ref = self.get_specific_nodes(arg_type, ('ref'))
21 if 'ref' in ref:
22 type_name = ref['ref'].firstChild.data