Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Doxygen incorrectly associates functions with a nested class (Origin: bugzilla #611174) #3688

Closed
doxygen opened this issue Jul 2, 2018 · 0 comments

Comments

@doxygen
Copy link
Owner

doxygen commented Jul 2, 2018

status RESOLVED severity major in component general for ---
Reported in version 1.6.3 on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2010-02-26 12:28:02 +0000, sentrydesign@yahoo.co.uk wrote:

Created attachment 154748
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

On 2010-02-26 12:36:06 +0000, sentrydesign@yahoo.co.uk wrote:

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

On 2010-07-04 18:57:11 +0000, Dimitri van Heesch wrote:

Confirmed. Both issues should be fixed in the next subversion update.

On 2010-10-09 08:19:14 +0000, Dimitri van Heesch wrote:

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.

@doxygen doxygen closed this as completed Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant