It would be very worthwhile for someone to add support for variadic macros to Splint (a C static analysis tool similar to lint but better). While it is not as good as Coverity Prevent and generates several false positives, it can be made to work with GLib/GTK+ application code and would be very helpful in eliminating several types of programming errors. It is certainly much better than lint. It has been used on GIMP trunk, along with other static analysis tools and it found errors which were fixed. Another tool called href=”http://www.cubewano.org/oink”>Oink doesn’t compile on my x86_64 box, but seems interesting nevertheless as it claims to support C++.
I dream of a day when C/C++ programmer editors do static analysis as I type, and suggest corrections to stupid mistakes. NetBeans (Java) has really spoiled me, by how productive one can be using it.
0 Responses to “Splint and variadic macros”