[cfe-dev] Stop scan after discovery first eror.

Alexander * via cfe-dev cfe-dev at lists.llvm.org
Thu Aug 16 00:13:57 PDT 2018



Hello.
Today there was a case when analyzing the software (test.c) by Clang Staic Analyzer (CSA).
The following code contains two BUG, first bug found and second bug was miss.

test.c:

#include <stdio.h>

void main()
{
int y; //1st bug
int i ; //2nd bug
printf ("%d", y); //1st bug
printf ("%d", i); //2nd bug
}

Analysis using CSA (by "scan-build-6.0 gcc test.c").

W hat is the problem?
How to fix it?

С уважением,
Researcher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180816/54e3614a/attachment.html>


More information about the cfe-dev mailing list