【问题标题】:Why Objective C language option is not found in Doxygen GUI?为什么在 Doxygen GUI 中找不到 Objective C 语言选项?
【发布时间】:2013-08-03 09:43:42
【问题描述】:

我正在尝试使用 Doxygen GUI 为我的 iPhone 项目生成文档。其中有一个选项为“选择编程语言来优化结果”。在这个选项中,我找不到 Objective C 选项。当我运行氧气时,它只显示空的 HTML 文件。

请澄清..!下面是截图...

【问题讨论】:

  • 你发现了吗?它似乎可以使用 Objective-C 自动完成,但很高兴知道我们是否需要设置一个选项

标签: iphone objective-c doxygen doxygen-wizard doxygen-addtogroup


【解决方案1】:

您可以查看您的Doxyfile(文本配置文件)。使用 cmets 生成时,该部分如下所示:

# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
# sources only. Doxygen will then generate output that is more tailored for C.
# For instance, some of the names that are used will be different. The list
# of all members will be omitted, etc.

OPTIMIZE_OUTPUT_FOR_C  = NO

# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
# sources only. Doxygen will then generate output that is more tailored for
# Java. For instance, namespaces will be presented as packages, qualified
# scopes will look different, etc.

OPTIMIZE_OUTPUT_JAVA   = NO

# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
# sources only. Doxygen will then generate output that is more tailored for
# Fortran.

OPTIMIZE_FOR_FORTRAN   = NO

# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
# sources. Doxygen will then generate output that is tailored for
# VHDL.

OPTIMIZE_OUTPUT_VHDL   = NO

# Doxygen selects the parser to use depending on the extension of the files it
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension,
# and language is one of the parsers supported by doxygen: IDL, Java,
# Javascript, CSharp, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL, C,
# C++. For instance to make doxygen treat .inc files as Fortran files (default
# is PHP), and .f files as C (default is Fortran), use: inc=Fortran f=C. Note
# that for custom extensions you also need to set FILE_PATTERNS otherwise the
# files are not read by doxygen.

EXTENSION_MAPPING      =

显然,Objective-C 是选项。向导不会反映它。但是,手动设置很容易。

【讨论】:

  • 感谢您的回答。我可以知道生成的 Doxyfile 的位置。我是这个工具的新手。
  • 我个人不使用 GUI 前端。只需键入doxygen -g 即可生成Doxyfile。它通常在您启动doxygen 的目录中生成。它可能是您可以在 GUI 前端看到的路径。但是,它不一定要命名为Doxyfile。我不知道 GUI 应用程序是做什么的。如果您找到它并且它不包含 cmets,您可以调用 doxygen -u(用于更新)以获取现有的 Doxyfile。
猜你喜欢
  • 2018-02-14
  • 1970-01-01
  • 1970-01-01
  • 2018-05-23
  • 2017-07-31
  • 1970-01-01
  • 1970-01-01
  • 2011-05-05
  • 2018-06-09
相关资源
最近更新 更多