【发布时间】:2016-11-21 15:37:27
【问题描述】:
我最近了解到:
// cppcheck-suppress noExplicitConstructor
A(int a)
{
std::cout << a;
}
让 cppcheck 忽略一些我不想考虑的错误/警告。不过,我也依赖这种风格的 Doxygen cmets:
/** This is A's constructor. */
A(int a)
{
std::cout << a;
}
我尝试过这样做:
/** This is A's constructor.
* cppcheck-suppress noExplicitConstructor
*/
A(int a)
{
std::cout << a;
}
但是 cppcheck 没有接受这种抑制。无论如何在 Doxygen 风格的评论中嵌入 cppcheck 抑制?
【问题讨论】:
标签: c++ doxygen static-code-analysis cppcheck