Game Development Community

T3D and static code analyzers

by Luis Anton Rebollo · in Torque 3D Professional · 05/06/2014 (8:35 am) · 3 replies

I'm spending some time using various static code analyzers with T3D.

Although often produce false positives can be very useful for discovery errors that have gone unnoticed.

  • With MSVC 2012 Analizer, I get a error and no report :(
  • With Clang scan-build. You can download html report here. Or view online.
  • In github we can even use scan.coverity.com/ to analyze the pull request.

  • I will add more information when it becomes available.

    #1
    05/06/2014 (9:21 am)
    Don't forget there is an Analyze tool in XCode. I'm guessing though its a frontend for the clang stuff.
    #2
    05/06/2014 (1:29 pm)
    I've used Rational Purify with much success. It slows down the application to a crawl however, and it does report a buffer overflow in BitStream which needs to be fixed anyway, even if it's delibirate.
    #3
    05/06/2014 (4:12 pm)
    Setting up Coverity sounds like a kind of great idea. I've had a look at the report you generated. It's difficult to weed out the false positives, it seems - maybe I just need to get used to how the report describes the errors.