[cfe-users] [analyzer] clang analyzer flag vs scan build
Anna Zaks via cfe-users
cfe-users at lists.llvm.org
Mon Jul 31 09:50:20 PDT 2017
I would recommend looking at the build script to see if there are any errors and if the source files where you expect errors to occur are being analyzed. (If it’s a makefile project, do not forget to run scan-build configure.)
> On Jul 27, 2017, at 12:33 PM, Cyndy Ishida via cfe-users <cfe-users at lists.llvm.org> wrote:
> I was trying to integrate the static analysis tools into a few of my projects.
> I started using scan-build, and couldn’t get it working on larger projects, even after exporting CXX & CC variables.
> It just always reported ‘no bugs found’.
> Using clang++ --analyze, I was able to see warning messages.
> On the smaller projects, I noticed that the errors were the same for both the compiler argument(--analyze) and the scan-build command.
> Would anyone know if and how they would incur different warning reports?
> -Cyndy Ishida
> This message, including any attachments, is intended only for the personal and confidential use of the designated recipient(s) to which it is addressed. This communication may contain information that constitutes attorney work product, is privileged, confidential or otherwise protected from disclosure. If the reader of this message is not the designated recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, retention, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us by telephone at +1 212 418 0113 or by e-mail reply to the sender, and discard any paper copies and delete all electronic files of this communication. Virtu Financial LLC. <http://www.virtu.com/>_______________________________________________
> cfe-users mailing list
> cfe-users at lists.llvm.org <mailto:cfe-users at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users <http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-users