[Halld-offline] [EXTERNAL] scan-build revived
Sean Dobbs
sdobbs at fsu.edu
Fri Feb 5 15:53:13 EST 2021
Hi Offliners,
To follow up on some of the discussion from this week's meeting, you
can find the output of a recent run of the scan-build static analyzer
here:
https://halldweb.jlab.org/scan-build/scan-build-2021-01-21-110224-160369-1/
Several potential bugs are flagged, but I'm not convinced that any of
them have any practical effect - we should squash them anyway, of
course.
I couldn't find a common build of clang (though I didn't do an
exhaustive search), so I built my own version, and then used the
following magic to get scan-build to work with Scons:
env["CC"] = os.getenv("CC") or env["CC"]
env["CXX"] = os.getenv("CXX") or env["CXX"]
env["ENV"].update(x for x in os.environ.items() if
x[0].startswith("CCC_"))
I scattered this code in various places, but probably someone more
familiar with SBMS would know the most efficient place to put these
lines, if we want to start the weekly runs of this analyzer back up.
Cheers,
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/halld-offline/attachments/20210205/8ff27342/attachment.html>
More information about the Halld-offline
mailing list