Doxygen C#XML注释:乘法同名和不同范围的枚举合并? [英] Doxygen C# XML comments: multiply enum's with same name and different scope got merged?

查看:294
本文介绍了Doxygen C#XML注释:乘法同名和不同范围的枚举合并?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Doxygen有一个非常奇怪的问题:我用它从我的C#代码的XML标签创建文档,如其他StackOverflow问题中所建议的那样。基本上是这样的情况:

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

在Doxygen生成的最终文档中我有:

 Foo1类参考
(.. 。)
公共类型
枚举吧{
Bar1,Bar2,Bar3,Bar4
}

而且:

 Foo2类参考
(...)
公共类型
枚举吧{
Bar1,Bar2,Bar3,Bar4
}

我不知道这是否是一个错误, Doxygen配置有问题。

解决方案

这是一个声称已经被修复的Doxygen 1.5.5-1.5.9中的错误在Doxygen 1.6.0中。



这个bug的历史链接回这个问题。


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.

解决方案

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.

这篇关于Doxygen C#XML注释:乘法同名和不同范围的枚举合并?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆