开发者

Best way to extract vim syntax files and ctags from Doxygen?

开发者 https://www.devze.com 2023-01-28 18:55 出处:网络
I wanted to write a vim syntax file for a library that has Doxygen documentation. Does a tool like that already exist ?

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 s开发者_Go百科omething like this doesn't already exist. Any idea why ? Am I looking in the wrong place ?


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.

0

精彩评论

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