[bind10-dev] using Clang Static Analyzer
Jeremy C. Reed
jreed at isc.org
Wed Sep 5 19:51:16 UTC 2012
See a report at
http://git.bind10.isc.org/~jreed/scan-build-2012-09-05-1/
This is using the Clang Static Analyzer (which can also use g++ as the
compiler). It can help find various bugs, memory leaks, etc. and even
mistakes that do not affect anything but otherwise are distracting.
For example, c_found is set to false and next line sets it to true
http://git.bind10.isc.org/~jreed/scan-build-2012-09-05-1/report-C5ya11.html#EndPath
Other example reports show the conditions step by step.
I plan to automate this as part of the existing build farm.
Jeremy C. Reed
ISC
More information about the bind10-dev
mailing list