pygccxml
pygccxml copied to clipboard
KeyError: (('/usr/include/c++/7/type_traits', 580), ('::', 'std', 'type'))
Hi there,
I have encountered the following error during the execution of pygccxml. If I launch castXML myself it sucessfully generates the XML file so I guess the issue comes from the parsing:
decls = parser.parse([filename], config)
File "/usr/lib/python2.7/site-packages/pygccxml/parser/init.py", line 51, in parse declarations = parser.read_files(files, compilation_mode) File "/usr/lib/python2.7/site-packages/pygccxml/parser/project_reader.py", line 264, in read_files return self.__parse_file_by_file(files) File "/usr/lib/python2.7/site-packages/pygccxml/parser/project_reader.py", line 332, in __parse_file_by_file leaved_classes = self._join_class_hierarchy(answer) File "/usr/lib/python2.7/site-packages/pygccxml/parser/project_reader.py", line 481, in _join_class_hierarchy derived_info.related_class)] KeyError: (('/opt/rh/devtoolset-7/root/usr/include/c++/7/type_traits', 580), ('::', 'std', 'type'))
I'm using clang 8.0, castXML 0.2 botuh compiled with GCC 7.3 on CentOS 7.6.