[cfe-dev] c++-analyzer warning question
Aleksei Sidorin via cfe-dev
cfe-dev at lists.llvm.org
Wed Sep 21 05:46:43 PDT 2016
More details: there is no cross-HTML diagnostics in clang now. Since the
execution starts from the function in the source file (if no special
option was set), we need to generate cross-file report for this. So,
this warning is filtered out.
21.09.2016 15:40, Aleksei Sidorin via cfe-dev пишет:
> Hello Dave,
>
> CSA usually does not emit HTML diagnostics in headers. So, you will
> not get HTML report for this.
>
>
> 21.09.2016 15:34, Dave Flogeras via cfe-dev пишет:
>>
>> On Wed, Sep 21, 2016 at 8:33 AM, Artem Dergachev <noqnoqneo at gmail.com
>> <mailto:noqnoqneo at gmail.com>> wrote:
>>
>> First of all, you shouldn't be calling the "c++-analyzer"
>> executable directly. It shouldn't ideally be in your PATH. This
>> script is intended to be run by a tool called "scan-build", which
>> essentially does the "CXX=c++-analyzer" thing you're doing, just
>> passing a lot of options to this script through its own
>> environment variables.
>>
>>
>> Ahh, OK sorry. If I re-try with a clean build dir:
>>
>> scan-build cmake -DCMAKE_BUILD_TYPE=Release ..
>> scan-build make
>>
>> I still see the aforementioned "Potential memory leak" on the
>> console, but at the end of the run scan-build says there are no
>> reports, and removes the output html directory.
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
> --
> Best regards,
> Aleksei Sidorin
> Software Engineer,
> IMSWL-IMCG, SRR, Samsung Electronics
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
--
Best regards,
Aleksei Sidorin
Software Engineer,
IMSWL-IMCG, SRR, Samsung Electronics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160921/3360e045/attachment.html>
More information about the cfe-dev
mailing list