The error checking available in VC is pretty good but the one item I
miss dearly is a way to validate printf() style calls. These are often
hard to test routinely as many calls are for very exceptional error
conditions that are difficult, if not impossible to create in boundary
testing. The issue is compounded by that these calls are are often
copy/pasted from similar error messages meaning we can miss something
"minor" in the edit that ends up tragic should the exception ever be
true.
if (1 == 2) printf ("Woops! 2 is %s, expected %u", 1, 2);
That should generate an error and perhaps two warnings. The error is
the %s and int type mis-match and the warnings are a %u vs int type
mis-match and that the trailing \n is missing though at the moment I
can't think of a nice clean way to flag that it's ok the string does
not have a \n.
Marc