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.
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:
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.