如何在Doxygen中禁用斜杠命令语法 [英] How to disable slash command syntax in Doxygen
本文介绍了如何在Doxygen中禁用斜杠命令语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到了PHP 5.3名称空间和Doxygen注释的问题.
I've run into a problem with PHP 5.3 namespacing and Doxygen comments.
示例:
/**
* Sample Method
*
* @param string $output
* @return \Project\Lib\Rest
*/
Doxygen给我以下警告:
Doxygen gives me the following warnings:
warning: Found unknown command `\Project'
warning: Found unknown command `\Lib'
warning: Found unknown command `\Rest'
该如何解决此问题或关闭\ commands而仅使用@commands
What can I do to fix this or turn off \commands and only use @commands
推荐答案
尝试转义反斜线,即使用
Try escaping your backslashes, i.e. use
/**
* Sample Method
*
* @param string $output
* @return \\Project\\Lib\\Rest
*/
\\
实际上是一个仅输出反斜杠的doxygen命令.
\\
is actually a doxygen command which just prints a backslash.
另请参见用Doxygen记录PHP:优点和缺点:
/**
* Sample Method
*
* @param string $output
* @return Project::Lib::Rest
*/
这篇关于如何在Doxygen中禁用斜杠命令语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文