开发者

hide common package in doxygen output

开发者 https://www.devze.com 2023-03-20 04:27 出处:网络
Given some packages foo.bar.project.something.FirstModulefoo.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

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开发者_如何学Go 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号