
Hi all.
I am not sure if the following is a bug or I am simply overlooking some of the basics of doxygen ...
It seems to me that friend functions (or functions that are related to a class by using the command \relates) lose their "inline" and "static" attributes when they are reported in the "Friends And Related Function Documentation" section of the _class_ (note that the attributes of the friend function are correctly reported in the "Function Documentation" section of the _namespace_).
Apparently, the "friend" (or "related") attribute is overriding the other attributes, while in my opinion it should just be added to the list of attributes.
I am using doxygen 1.2.14 and a standard configuration file where I set
EXTRACT_PRIVATE = YES EXTRACT_STATIC = YES SOURCE_BROWSER = YES INLINE_SOURCES = YES
Regards, Enea Zaffanella.
//! This is a namespace. namespace MyNamespace {
//! This is an inlined friend function. inline static void foo_friend();
//! This is an inlined related function. /*! \relates A */ inline static void foo_related();
}
namespace MyNamespace {
//! This is A class. class A { inline static void foo(); friend inline static void foo_friend(); };
}
namespace MyNamespace {
/*! Detailed description for the static member. */ inline static void A::foo() { // Bla bla. }
/*! Detailed description for the friend. */ inline static void foo_friend() { // Bla bla. }
/*! \relates A Detailed description for the related. */ inline void foo_related() { // Bla bla. }
}