You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider a Python class with a documented field. In all subclasses of that base class, the inherited field is not recognized as such. Instead, doxygen considers it as a distinct field for each subclass and complains about the absence of documentation in all subclasses.
## Class
class C1:
## Constructor
def __init__(self):
## Variable
self.a = 'C1'
## Method
def test(self):
print(self.a)
## Subclass
class C2(C1):
## Constructor
def __init__(self):
super().__init__()
self.a = 'C2'
x = C2()
x.test()
Doxygen output:
$ ../doxygen-master/build/bin/doxygen
test.py:16: warning: Member a (variable) of class test.C2 is not documented.
$
$ ../doxygen-master/build/bin/doxygen --version
1.9.8 (27ba0983fdcc4b7b836e06fef90e05400d8351c8)
In fact, the member a in line 16 of subclass C2 is the inherited member from class C1 which has already been documented as part of C1.
The HTML output for C2 incorrectly lists a field a in addition to the inherited one from C1:
Consider a Python class with a documented field. In all subclasses of that base class, the inherited field is not recognized as such. Instead, doxygen considers it as a distinct field for each subclass and complains about the absence of documentation in all subclasses.
Doxygen output:
In fact, the member
a
in line 16 of subclassC2
is the inherited member from classC1
which has already been documented as part ofC1
.The HTML output for
![screenshot](https://private-user-images.githubusercontent.com/5641922/261622863-6631046f-d1cc-46a5-bff3-2089f354c932.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4MTI1NTYsIm5iZiI6MTcxODgxMjI1NiwicGF0aCI6Ii81NjQxOTIyLzI2MTYyMjg2My02NjMxMDQ2Zi1kMWNjLTQ2YTUtYmZmMy0yMDg5ZjM1NGM5MzIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTlUMTU1MDU2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGU2YTJjYjQyYWEyNjEwYzQ0ZGQ5MjIyNGY5MmNlYWQ0ODZmMzRiMWUyNTA5YTA1NWI1NTllM2U4MmMzYjY1MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.MmIAUXCQXxmW1o1Y3NQE5teRqoLkn5kR-pHm9H6WTkI)
C2
incorrectly lists a fielda
in addition to the inherited one fromC1
:Reproduction: doxybug6.zip
The text was updated successfully, but these errors were encountered: