views:

87

answers:

2

I'm looking for a way to visualize compiler warnings and remarks, by annotating or otherwise showing which lines cause a report.

This is much like a modern IDE like NetBeans or Eclipse already does, but I'd like to take output from several compilers (and other static code analysis tools) at once, and create one single annotation in order to get a better overview.

The rationale is that we've seen some problems go completely undetected by, say, Visual Studio 2005, but accurately detected with a proprietary ARM compiler, and vice versa. Cross-referencing warnings could potentially locate problems better, but doing so completely manually is infeasible.

Have you heard of such a tool? Could an open-source IDE like Eclipse be extended to use several compilers at once, or has it already been done?

A: 

Other tools sucks as findbugs already extend the warning mechanism used in eclipse. Hence if you have the findbugs plugin for eclipse installed you will see both your compile errors/warnings and your findbugs warnings.

Thirler
Interesting. However, findbugs is a tool for Java only, I need something that can handle C89 and C99 sources.
Christoffer
My answer was mainly to your last question. You can extend eclipse to show warnings from several sources, the real problem will be that most compiler plugins for eclipse will assume they are the only ones you are interested in, so some manual work will be required. Even so, eclipse is the most popular IDE, so there is a big chance it will already plugins for some of the compilers you want to use.
Thirler
A: 

I suppose I'll give an answer to my own question then, to summarize what I've found so far:

  • the CDash tool look pretty interesting, although not precisely what I'm looking for

  • the PyPy Speed Center looks interesting, and should at least be possible to extend to show "number of warnings" as a quality measure over time

  • other than that, just comparing warning output with diff from several compilers is pretty satisfying, especially since many compilers can generate "GCC-like" warning and error output for easy comparison.

Christoffer