[Halld-offline] C++ code analyzer + clang 3.7.0
David Lawrence
davidl at jlab.org
Fri Dec 4 08:50:07 EST 2015
Hi All,
Partly in response to a recommendation given to us at the last Software Review
I have set up a nightly cron job to run the scan-build code analyzer on our sim-recon
code. You can see the latest results of this here:
https://halldweb.jlab.org/scan-build/LATEST
They are a bit interesting to go through. If you click on “View Report” next to any of the
identified issues, it will show you the relevant source code marked step by step
with how the error condition might be reached.
The scan-build tool is made available by the llvm/clang compiler authors and utilizes
features built into the clang C/C++ compiler. As such I had to build and install the
clang 3.7.0 compiler on the CUE. It is available for general use by sourcing this script:
/group/halld/Software/ExternalPackages/clang-llvm/llvm_clang_3.7.0/setenv.csh
Details on the cron job that runs the analyzer (using code checked out for the nightly
build) is detailed on the wiki page here:
https://halldweb1.jlab.org/wiki/index.php/Nightly_Builds_of_GlueX_Software
Please let me know if you have any questions.
Regards,
-David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/halld-offline/attachments/20151204/a328d929/attachment.html>
More information about the Halld-offline
mailing list