配置 Eclipse 代码分析
我使用 Eclipse Code Analysis for C++ 一段时间了。我现在尝试将其应用到现有项目中,但在消除噪音方面遇到了一些问题。
有没有办法从分析中排除文件?我已经找到了关闭单个规则文件的方法,但正在寻找全局控制。
另外,我希望能够设置要根据需要和包含的内容进行检查的系统标头,以便减少未定义的变量计数。这可能吗?
目前代码编译并运行良好,因此该工具目前过于敏感。
我已经在使用这个工具时发现了一些潜在的错误,并希望对其进行更好的调整。我正在将 Eclipse Indigo 与 Codan 一起使用。
I have been using Eclipse Code Analysis for C++ for a little while. I have now tried applying it to an existing project and am having some problems getting rid of the noise.
Is there a way of excluding files from the analysis? I have found ways of turning off files for individual rules, but am looking for a global control.
Also, I want to be able to set up system headers to be inspected as required and as included so that the undefined variable count is cut down. Is this possible?
The code compiles and runs fine at the moment so this tool is currently too sensitive.
I have alreadyfound some potential bugs using this tool and would like to tune it better. I am using Eclipse Indigo with Codan.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,您想要的功能被标记为未来工作。但是,您始终可以尝试创建检查器,就像此处所述。
Actually, the feature you want is marked as future work. But, you can always try to create your checker, like it is explained here.