Doxygen C# XML comments: multiply enum's with same name and different scope got merged?

懵懂的女人 提交于 2019-12-25 03:38:14

问题


I have very strange problem with Doxygen: I used it to create documentation from XML tags of my C# code as suggested in some other StackOverflow question. Basically heres the situation:

//file: Foo1
public class Foo1
{
    public enum Bar
    {
        Bar1,
        Bar2
    }
}
//file: Foo2
public class Foo2
{
    public enum Bar
    {
        Bar3,
        Bar4
    }
}

And in final docs generated by Doxygen I have:

Foo1 Class Reference
(...)
Public Types
enum    Bar{
  Bar1, Bar2, Bar3, Bar4
}

And:

Foo2 Class Reference
(...)
Public Types
enum    Bar{
  Bar1, Bar2, Bar3, Bar4
}

I do not know if it is a bug, or I have done something wrong with Doxygen configuration.


回答1:


It's a bug in Doxygen 1.5.5-1.5.9 that is claimed to have been fixed in Doxygen 1.6.0.

The history of the bug links back to this very question.



来源:https://stackoverflow.com/questions/1234077/doxygen-c-sharp-xml-comments-multiply-enums-with-same-name-and-different-scope

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!