如果使用 @ 而不是 \ 是否有负面影响
Is there a negative effect if using @ instead of \
我已经使用 doxygen 一段时间了。我使用的编辑器 (N++) 为特殊命令创建带有反斜杠的 doxygen 注释。
doxygen 手册说:
All commands in the documentation start with a backslash ( \ ) or an at-sign ( @ ). If you prefer you can replace all commands starting with a backslash below by their counterparts that start with an at-sign.
所以 doxygen 并不真正关心它。
或者导致使用 \ 比使用 @.
更麻烦
反斜杠在C/C++中用作转义字符,因此'\"'
例如是双引号字符。
对 doxygen 标签使用 @
可以更轻松地使用 grep / 搜索源代码。
出于这个原因,我总是使用 @
。
我已经使用 doxygen 一段时间了。我使用的编辑器 (N++) 为特殊命令创建带有反斜杠的 doxygen 注释。
doxygen 手册说:
All commands in the documentation start with a backslash ( \ ) or an at-sign ( @ ). If you prefer you can replace all commands starting with a backslash below by their counterparts that start with an at-sign.
所以 doxygen 并不真正关心它。 或者导致使用 \ 比使用 @.
更麻烦反斜杠在C/C++中用作转义字符,因此'\"'
例如是双引号字符。
对 doxygen 标签使用 @
可以更轻松地使用 grep / 搜索源代码。
出于这个原因,我总是使用 @
。