0

我正在嘗試使用Doxygen GUI爲我的iPhone項目生成文檔。在那裏有一個選項「選擇編程語言來優化結果」。在這個選項中,我找不到Objective C選項。當我運行氧氣時,它只顯示空的HTML文件。爲什麼在Doxygen GUI中找不到Objective C語言選項?

請說明..!下面是截圖...

enter image description here

+0

你知道了嗎?它會自動執行Objective-C,但會很好地知道是否有需要設置的選項 –

回答

0

你可以看看你的Doxyfile(文本配置文件)中。當生成評論時,該部分看起來像:

# 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是選項。該向導不反映它。但是,手動設置很容易。

+0

感謝您的回答。我可以知道生成的Doxyfile的位置嗎?我是這個工具的新手。 –

+0

我個人不使用GUI前端。只要輸入'doxygen -g'就會生成'Doxyfile'。它通常在您啓動'doxygen'的目錄中生成。它可能是您在GUI前端可以看到的路徑。但是,它不需要被命名爲'Doxyfile'。我不知道GUI應用程序的功能。如果你找到它並且它不包含註釋,你可以調用'doxygen -u'(用於更新)來獲取他們的現有'Doxyfile'。 – pepr