隐藏doxygen输出中的常见包 [英] hide common package in doxygen output

查看:113
本文介绍了隐藏doxygen输出中的常见包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给定一些包 foo.bar.project.something.FirstModule foo.bar.project.something.SecondModule 等等。他们都有那么长的 foo.bar.project.something 的共同点。如何告诉doxygen隐藏(或至少缩短)这些常见的包名称,并且只打印 FirstModule.SomeClass SecondModule.MyInterface 在其输出中?

解决方案

您可以将HIDE_SCOPE_NAMES设置为YES,但这可能也会剥离FirstModule和SecondModule。 / p>

另一种方法是编写一个简单的输入过滤器(参见doxygen配置文件中的INPUT_FILTER),替换package foo.bar.project.something.AModule;通过包AModule;。然后你可以完全控制剥离的数量。


Given some packages foo.bar.project.something.FirstModule foo.bar.project.something.SecondModule, etc. They all have that long foo.bar.project.something in common. How do I tell doxygen to hide (or at least shorten) those common package names and only print FirstModule.SomeClass and SecondModule.MyInterface in its output?

解决方案

You could set HIDE_SCOPE_NAMES to YES, but that will probably also strip FirstModule and SecondModule.

An alternative is to write a simple input filter (see INPUT_FILTER in the doxygen config file) that replaces "package foo.bar.project.something.AModule;" by "package AModule;". Then you have full control over how much is stripped.

这篇关于隐藏doxygen输出中的常见包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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