rtucker / bladeRF-buildbot

Continuous build system for nuand bladeRF components
MIT License
1 stars 0 forks source link

Feature Request: Include Clang scan-build output #1

Closed jynik closed 10 years ago

jynik commented 10 years ago

I've been pretty happy with Clang's ''scan-build'', especially considering that the Coverity scan rate-limit increased. Any chance we could get this baked into the nightly build process?

The general gist of what would need to be done is:

$ cd $PATH_TO_BLADERF/host/
$ mkdir clang_scan && cd clang_scan
$ cmake -DCMAKE_C_COMPILER=/usr/share/clang/scan-build/ccc-analyzer ../
$ /usr/share/clang/scan-build scan-build make

... beep boop beep ...

scan-build: 25 bugs found.
scan-build: Run 'scan-view /tmp/scan-build-2014-05-13-192806-4281-1' to examine bug reports.

From there, I believe the output in the aforementioned /tmp directory could be copied into the appropriate location. I believe everything in the reports are relative links, so no massaging should be necessary.