Re: [pygccxml-development] What am I doing wrong?
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-04-18 18:32:57
|
I hope this time I provides almost complete fix for the bug. Description: First of all I missed some index operator on attrs - in Python function, that read C++ function declaration. So what happened? For some constructors GCC-XML does not generates "name" attribute. I guess he does it for compiler generated constructors or may be for something else. I still need to find out. Until now about the problem. Now about a solution= . The solution consist from 2 parts: 1. to modify scanner_t.__read_calldef function: calldef.name =3D attrs[ XML_AN_NAME ] =3D=3D> calldef.name =3D attrs.get(XML_AN_NAME, '') 2. to modify linker_t.visit_class member function. In this function, for unnamed constructors pygccxml will assign class name. So why almost? Because I want to play on safe-side :-) Neal, please try it and report the problems. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |