[cfe-dev] scan-build and paths spanning multiple files
Anna Zaks
ganna at apple.com
Fri Jul 5 11:19:23 PDT 2013
In addition, the analyzer's plist output does support multi-file paths. So depending on how you consume the output this might be useful. Note, we change the format of the plist often and do not guarantee supporting it forever. However, there are python utilities in clang/utils/analyzer that can help you parse the output (CmpRuns.py); these are mainly used for testing now.
Anna.
On Jul 1, 2013, at 6:07 PM, Jordan Rose <jordan_rose at apple.com> wrote:
> 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
>
> _______________________________________________
> 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/20130705/9aa85703/attachment.html>
More information about the cfe-dev
mailing list