Parse files without extensions

穿精又带淫゛_ 提交于 2020-01-05 05:26:29

问题


I'm setting up the doxygen for a project. The module files have their language standard extension (.py), but the executable scripts do not. How can I get doxygen to read these correctly (Python in this case)? I tried

EXTENSION_MAPPING = ''=Python

But that looks for files named "blah.". I'm on a Unix system, so the concept of a file extension doesn't even exist here. And this is an existing project, so renaming all of the existing scripts is not an option.

Any ideas?


回答1:


I modified doxygen to handle filenames without dots in them, and I'll submit the patch to the maintainers.




回答2:


One simple trick is to make a symbolic link to the script that does have the right extension, and let doxygen then process the symbol link.

Say you have a python script called test, then do

ln -s test test.py

and then specify the test.py file in doxygen's configuration file

INPUT = test.py



回答3:


According to doxygen's EXTENSION_MAPPING docs,

EXTENSION_MAPPING = ".no_extension=python"

should work.



来源:https://stackoverflow.com/questions/14148978/parse-files-without-extensions

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!