Title: Samsung Enterprise Portal mySingle

Dear Clang Users,

We are trying to use the clang analyser for our product source code but cant seem to get it working for even the basic use cases!

We use the command

scan-build -enable-checker alpha.unix.Stream clang hello.c

where hello.c is a test file for the double fclose checker as detailed in http://llvm.org/devmtg/2012-11/Zaks-Rose-Checker24Hours.pdf

 

       FILE *fp;
        fp= fopen("hello.txt","w");
        if(len0==0)
                fclose(fp);
        else
                fputc(len0, fp);
        fclose(fp);

        return 0;

On running we get the message

scan-build: Using '/usr/local/bin/clang-3.9' for static analysis
scan-build: Removing directory '/tmp/scan-build-2016-06-16-112854-24350-1' because it contains no reports.
scan-build: No bugs found

 

Any help on this issue would be appreciated.

 

Thanks and warm regards,

Manjunath N

===========================

System LSI Group, DS India Lab, Samsung Research India - Bangalore

 

_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to