GNOME Bugzilla – Bug 611174
Python: Doxygen incorrectly associates functions with a nested class
Last modified: 2010-10-09 08:19:14 UTC
Created attachment 154748 [details] Test case. If you have a Python class with some private nested classes Doxygen incorrectly associates functions of the parent with the final Nested Class. In the case of the class below Doxygen associates myDemoFunc and myAnotherDemoFunc with NestedClassBar rather than DemoClass. class DemoClass( object ): class NestedClassFoo( object ): def myFooFunc ( self ): pass class NestedClassBar( object ): def myBarFunc ( self ): pass ## # This is my demo function. # def myDemoFunc( self ): pass ## # This is my second demo function. # def myAnotherDemoFunc( self ): pass
I have also seen a similar issue with classes being attributed to the wrong namespace. For the example below doxygen associates the class WrongAssociation with the namespace foo.bar.DemoClass.Full.WrongAssociation rather than foo.bar.DemoClass.WrongAssociation class DemoClass( object ): class Empty( Exception ): pass class Full( Exception ): pass class WrongAssociation( object ): def __init__( self, iPriority, mData ): pass ## # This is my demo function. # def myDemoFunc( self ): pass ## # This is my second demo function. # def myAnotherDemoFunc( self ): pass
Confirmed. Both issues should be fixed in the next subversion update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.7.2. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant.