别名格式非法“ ALIASES” [英] Illegal alias format `ALIASES '
问题描述
我将以下代码添加到doxywizard别名中,但出现错误。我该如何解决呢?
I added below codes into doxywizard ALIASES but I get error. How can I solve this?
ALIASES += global_START="<dl class=\"params\"><dt>Globals</dt><dd><table class=\"params\">"
ALIASES += global_{2}="<tr><td class=\"paramname\">\1</td><td>: \2</td></tr>"
ALIASES += global_END="</table></dd></dl>"
[![在此处输入图片描述] [1]] [1]
[![enter image description here][1]][1]
错误消息:
错误:别名格式ʻALIASES + = global_START =
Globals
error: Illegal alias format `ALIASES += global_START="
Globals
\1
:\2
"'。使用名称=值或名称(n)=值,其中n是错误的参数个数:别名格式非法别名+ = global_END =
\1
: \2
"'. Use "name=value" or "name(n)=value", where n is the number of arguments error: Illegal alias format `ALIASES += global_END="
。使用名称=值或名称(n)=值,其中n是自变量数量
"'. Use "name=value" or "name(n)=value", where n is the number of arguments
版本: 1.8.11
解决方案
我在doxyfile中手动添加了这样的文件:
I manually added in doxyfile like this:
ALIASES = ALIASES += global_START="<dl class=\"params\"><dt>Globals</dt><dd><table class=\"params\">"
ALIASES += global_{2}="<tr><td class=\"paramname\">\1</td><td>: \2</td></tr>"
ALIASES += global_END="</table></dd></dl>"
然后打开doxywizard,别名字段如下所示:(每行必须单独添加)
And open the doxywizard, ALIASES field look like this: (every line must added seperately)
ALIASES
+=
global_START="<dl class=\"params\"><dt>Globals</dt><dd><table class=\"params\">"
global_{2}="<tr><td class=\"paramname\">\1</td><td>: \2</td></tr>"
global_END="</table></dd></dl>"
推荐答案
不是答案,但是对于
我无法复制问题中指出的结果,输入和输出:
I was not able to reproduce result sas indicated in the question, my input and output:
使用的源代码:
/// \file
/**
* @brief Port state and port index value assign with Modbus Input Register
* The application receives in this parameter the zero-ba..
* @param[in] portRole This parameter get the role of the port
* @global_START
*
* @global_{bExampleTwo, Second Description Here}
* @global_END
*/
void fie(int portRole);
使用的Doxyfile:
Doxyfile used:
ALIASES += global_START="<dl class=\"params\"><dt>Globals</dt><dd><table class=\"params\">"
ALIASES += global_{2}="<tr><td class=\"paramname\">\1</td><td>: \2</td></tr>"
ALIASES += global_END="</table></dd></dl>"
生成的图片(详细部分:
Resulting image (detailed part:
这篇关于别名格式非法“ ALIASES”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!