On Mon, Oct 11, 2010 at 2:44 AM, Bernd Petrovitsch <bernd@xxxxxxxxxx> wrote: > ---- snip ---- > {102}egrep -wc 'false|true' *.[ch] | grep -v :0 > compile-i386.c:19 > evaluate.c:13 > expand.c:10 > flow.c:10 > inline.c:13 > linearize.c:6 > pre-process.c:3 > show-parse.c:3 > simplify.c:9 > symbol.c:1 > tokenize.c:1 > ---- snip ---- > There are perhaps false positives in there - but not all. > > Perhaps 'sparse' should warn if one names variables, functions, and > similar "true", "false" or with any other C99 keyword. > For C++ keywords, a different option is probably best. > Those are not used in header files they should be fine. Sparse uses C99 extensively so it is likely it can't compile as C++ any way. I see no reason to compile sparse with C++. Chris -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html