模板符号的 Doxygen 错误警告

Doxygen false warning for template notation

我有一个代码片段

vector<foo> bar;

它工作正常,但 Doxygen 警告“找到不支持的 xml/html 标记 。因为它是一个代码,所以使用转义字符,我在谷歌搜索时发现,是不可能的。我可以抑制警告吗?

您可以使用以下代码段:

//! @cond DoNotRaiseWarning
code
//! @endcond