[Doxygen-develop] [BUG] "friend class" causes error in "Friends" section
Brought to you by:
dimitri
From: Morten E. <mo...@si...> - 2002-07-31 12:01:53
|
Hi, I think this is a bug in the C++ parsing: when using "friend class SomeClass" in a header file, like this ---8<---- [snip] --------8<---- [snip] --------8<---- [snip] ----- class MyClass { private: friend class SomeClass; }; ---8<---- [snip] --------8<---- [snip] --------8<---- [snip] ----- ..then "class SomeClass" shows up in the "Friends" section of MyClass's class documentation. If I understand the purpose of the "Friends" section correctly, it is supposed to only contain a list of friend _functions_. A friend _class_ is a completely different thing, and is something that should only be of interest for the implementation -- ie it's a detail that should not be present in the class doc. (Also, Doxygen spits a bogus warning when hitting "friend class SomeClass": "Warning: Member SomeClass of class MyClass is not documented.") I found this problem when upgrading from 1.2.something to 1.2.15, and it is still present in 1.2.17. Regards, Morten |