隐藏doxygen输出中的常见包 [英] hide common package in doxygen output
问题描述
给定一些包 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屋!