别名格式非法“ ALIASES” [英] Illegal alias format `ALIASES '

查看:78
本文介绍了别名格式非法“ 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆