在Visual C ++中突出显示错误

问题描述:

在Java项目上使用Eclipse或NetBeans IDE时,在编译前后,我都会看到代码中的错误在哪里.显示导致问题的行.我记得在过去,Visual C ++ 98'版本确实在代码中强调了错误.有没有办法在Visual C ++ 2005中启用此功能?还是有第三方插件?

When using Eclipse or NetBeans IDE on a Java project I get to see where errors in my code are, before and after compiling. The line causing the issue is shown. I remember that back in the old days, the Visual C++ 98' edition did do underlining of errors in the code. Is there a way to enable this in Visual C++ 2005? Or is there a 3rd party plugin to do so?

您需要做的是为C ++使用带有VS2005实时插件的静态代码分析工具.不幸的是,我不知道有任何可插入VS2005的开源静态代码分析器,但是有一些商用的.受到广泛欢迎的此类产品之一是 Riverblade的Visual Lint .

What you need in order to do this is a static code analysis tool for C++ with a real-time plug-in for VS2005. Unfortunately, I'm not aware of any open-source static code analyzers that plug into VS2005, but there are some commercial ones. One such product that has been well-received is Riverblade's Visual Lint.

总的来说,谷歌搜索可视化c ++静态代码分析"是开始着手研究这类软件的好地方.

In general, Googling "visual c++ static code analysis" is a good place to start hunting this type of software down.