【发布时间】:2016-09-25 17:29:56
【问题描述】:
我有一个结构如下的项目:
/path/to/project/source/library/
/path/to/project/tests/
如果我跑
cppcheck --xml-version=2 --enable=all /path/to/project/source/library
source/library/ 中的文件出现一堆“未使用函数”错误,但 tests/ 中的文件调用了这些函数。有没有办法告诉cppcheck 解析像tests/ 这样的目录中的文件,但不报告这些文件本身的错误?
【问题讨论】: