[cfe-dev] [analyzer] -analyzer-output=text in scan-build
Alexander Droste via cfe-dev
cfe-dev at lists.llvm.org
Mon Oct 5 11:53:33 PDT 2015
Interesting, thanks for providing this overview!
-Alex
On 05.10.15 20:36, Anna Zaks wrote:
>
>> On Oct 5, 2015, at 11:20 AM, Alexander Droste <alexander.ra.droste at googlemail.com> wrote:
>>
>> Thanks for your answer! Is there a reason why this is not
>> activated in any case by default when the analyzer is invoked?
>
> I think it’s about the workflows that are interesting to various users. Plist provides the richest output; this is what is used to view the error reports in Xcode. Scan-build uses the HTML reports. Unfortunately, the cross-file support is still lacking there and there are other problems with the current implementation, such as scalability. The text output is not user friendly; we mainly use it for testing.
>
> Anna.
>
>>
>> Apart from that, maybe this option could be integrated into the new
>> scan-build script? (reviews.llvm.org/D9600)
>> If there's interest, I could provide a patch to the
>> script currently hosted on GitHub: https://github.com/rizsotto/Beye.
>>
>> -Alex
>>
>>
>> On 05.10.15 07:42, Anna Zaks wrote:
>>> There is no scan-build option that supports it right now. However, it would be trivial to add. $Options{OutputFormat} variable is used to set the value of "-analyzer-output".
>>>
>>> Anna.
>>>> On Oct 2, 2015, at 1:49 PM, Alexander Droste via cfe-dev <cfe-dev at lists.llvm.org> wrote:
>>>>
>>>> Hi,
>>>>
>>>> it is possible, to somehow pass the -analyzer-output=text flag
>>>> to scan-build, in order to activate tracing diagnostics
>>>> for the command line output? This would be handy, as the scan-build
>>>> script eases the static analyzer use for nontrivial build setups
>>>> and -analyzer-output=text provides information about traced paths
>>>> of implementations defined in headers which are not presented in the
>>>> html output.
>>>>
>>>> -Alex
>>>> _______________________________________________
>>>> cfe-dev mailing list
>>>> cfe-dev at lists.llvm.org
>>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>>
>
More information about the cfe-dev
mailing list