从 Doxygen 中提取 vim 语法文件和 ctag 的最佳方法?
我想为具有 Doxygen 文档的库编写一个 vim 语法文件。
这样的工具已经存在吗?
如果没有,自动生成它的最佳方法是什么?
- 编写一个新的输出生成器(复杂)?
- 从 doxygen/xml/*.xml 解析大量 xml(慢)?
还要别的吗 ?
我很惊讶这样的东西还不存在。知道为什么吗?我是不是找错地方了?
I wanted to write a vim syntax file for a library that has Doxygen documentation.
Does a tool like that already exist ?
If not, what would be the best way to generate this automatically ?
- write a new output generator (complicated) ?
- parse lots of xml from doxygen/xml/*.xml (slow) ?
Anything else ?
I was surprised that something like this doesn't already exist. Any idea why ? Am I looking in the wrong place ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与解析所有生成的 XML 文件相反,您应该能够生成 Doxygen 标记文件。可以使用 Doxygen 选项
GENERATE_TAGFILE
创建标记文件。生成的文件仍然是 XML,但它在单个文件中捕获所有文件、结构、函数和其他符号,这可能更容易转换为您需要的格式。As opposed to parsing all of the generated XML files, you should be able to generate a Doxygen tags file. The tag file can be created with the Doxygen option
GENERATE_TAGFILE
. The resulting file is still XML, but it captures all of the files, structs, functions and other symbols in a single file which is likely easier to transform into the format that you need.