[cfe-dev] scan-build and paths spanning multiple files

Jordan Rose jordan_rose at apple.com
Mon Jul 1 18:07:20 PDT 2013


There's not currently a great way to do it. There's an internal option named "-analyzer-output" which accepts the value "text", but the display is currently broken in that path notes aren't attached to their associated warnings. This wouldn't be too hard to fix, but no one's gotten around to it yet.

You could cheat by preprocessing the source first and then analyzing that, but the resulting syntax-colored HTML file is usually massive, bogging down many browsers.

Basically, no one's put in the effort for this. ...patches welcome?

Sorry,
Jordan


On Jul 1, 2013, at 12:48 , Óscar Fuentes <ofv at wanadoo.es> wrote:

> A known limitation of the html output of scan-build is that it ignores
> warnings whose paths spans more than one file [1]
> 
> Is there a way of obtaining the path associated to a warning when it
> spans multiple files?
> 
> [1] http://llvm.org/bugs/show_bug.cgi?id=16489
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130701/24e73c6e/attachment.html>


More information about the cfe-dev mailing list