+doxygen_xml

This commit is contained in:
Costa Shulyupin 2019-11-06 11:19:18 +02:00
parent 5de33811a5
commit c527123514
1 changed files with 13 additions and 0 deletions

View File

@ -1013,6 +1013,19 @@ def dir_tree(d='.'):
return g
def doxygen_xml(a):
g = my_graph()
for x in list(glob.glob(os.path.join(a, "*.xml")) + [a]):
if os.path.isfile(x):
d = xml.dom.minidom.parse(x)
for m in d.getElementsByTagName("memberdef"):
n = m.getElementsByTagName("name")[0].firstChild.data
for r in m.getElementsByTagName("references"):
g.add_edge(n, r.firstChild.data)
# referencedby
return g
return g