[Halld-offline] C++ code analyzer + clang 3.7.0
davidl at jlab.org
Fri Dec 4 08:50:07 EST 2015
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:
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:
Details on the cron job that runs the analyzer (using code checked out for the nightly
build) is detailed on the wiki page here:
Please let me know if you have any questions.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Halld-offline