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
This occurs when forward-declaring a nested class and then implementing it somewhere else, e.g. the following code
/** @brief This class has a nested class defined elsewhere
*/
class parent {
public:
class nested;
};
/** @brief The nested class
* @note Every member of this class will raise a DUPLICATE warning
*/
class parent::nested {
public:
/** @brief Raises a DUPLICATE warning
*/
inline void this_method_will_be_duplicate() const {}
};
The warnings seems to be correct. There are two rst files (generated by Exhale?) of interest:
api/classnested_1_1parent.rst for the parent class.
api/classnested_1_1parent_1_1nested.rst for the nested class.
However, the parent file already contains the declarations for the nested class (recursively), so the declarations in the second file become duplicates (or the other way around depending on the order the input files are processed).
This occurs when forward-declaring a nested class and then implementing it somewhere else, e.g. the following code
produces the following warnings:
I tried with master version of Sphinx and Breathe (through Exhale), but this still persists. It also persists when using PR 512.
I have an Exhale-based project here that containes the example above to reproduce.
The text was updated successfully, but these errors were encountered: