[cfe-dev] clang-cl with analyzer-output=text

Matthew Del Buono via cfe-dev cfe-dev at lists.llvm.org
Fri Feb 9 08:56:53 PST 2018


Ah, I didn't realize that -Xclang also works for the analyzer arguments.
That makes this problem a lot easier. Thanks!

-- Matthew P. Del Buono

On Fri, Feb 9, 2018 at 5:49 AM, Artem Dergachev <noqnoqneo at gmail.com> wrote:

> Hmm. It seems that -Xclang works just fine, you can use that instead of
> -Xanalyzer. I've no idea why do we need to have so many of those, also it's
> shorter.
>
>
> On 2/8/18 11:39 PM, Matthew Del Buono via cfe-dev wrote:
>
>> Hi all,
>>
>> With clang-cl I can use the --analyze argument to run static analysis,
>> but it seems -Xanalyzer is not recognized. So normally I'd pass -Xanalyzer
>> -analyzer-output=text to get the additional flow information, but it's not
>> permitted.
>>
>> Is there a way to get clang-cl to pass the -analyzer-output=text option
>> to the analyzer? If not, is this just because nobody's gotten around to it?
>> (I'd be more than happy to work on a patch if there isn't a reason for it
>> not to be there.)
>>
>> Thanks,
>> -- Matthew P. Del Buono
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180209/40c75e36/attachment.html>


More information about the cfe-dev mailing list